On 2026-03-11 05:15, Alejandro Colomar wrote:
strlen(3) is orders of magnitude faster than what asprintf(3) does.
I expect it won't be something that can be measured

On the contrary, if the strings are long enough then on many architectures I would expect strlen and *sprintf-with-%s to be about the same speed, as the bottleneck is access to all that slow RAM, not the CPU.

Reply via email to