3 ms·
The Planetscale article mentions that byteseq (a constraint that is a string of slice of bytes) was actually faster than string or bytes, which was probably jus
by earthboundkid 5y ago
The Planetscale article mentions that byteseq (a constraint that is a string of slice of bytes) was actually faster than string or bytes, which was probably just noise in the benchmarking. In general, between the Planetscale article and this one, the takeaway lesson is “Use generics for data containers and other cases that don’t call constraint methods. If you need to call a method, it will probably end up being slower.” It makes sense if you think about it.