[master] 5e5b442f5 VSLb() is not the choice for a single string argument
Dridi Boukelmoune
dridi at varni.sh
Wed Jul 20 16:03:15 UTC 2022
> > Yes it should. But why not avoid an snprintf if we can?
>
> +0
>
> At least on FreeBSD it is surprisingly cheap. In the normal
> case, for instance printf("%s", ...) it is free, because the
> compiler turns it into a fputs() instead.
But that kind of optimization wouldn't happen for VSLb("%s") calls?
That sounds like a very long shot.
More information about the varnish-commit
mailing list