all: avoid string(byteslice) conversion before passing arguments to fmt.*rintf with "%s" verb #10363
Closed
4 tasks done
Labels
T: Performance
Performance improvements
If we run this pattern
Notice how many hits we've got. fmt.Printf or fmt.Sprintf know how to convert a byteslice into a string when building the output, and we shouldn't incur the unnecessary string(byteslice) conversion. Using Bencher, we can see improvements such as https://dashboard.github.orijtech.com/benchmark/3245b8e4bbbd44a597480319aaa4b9fe
For Admin Use
The text was updated successfully, but these errors were encountered: