You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Optimization is accomplished by preallocating a fixed-size buffer and
using strconv.AppendQuote instead of always dynamically allocating
memory in strconv.Quote. make([]byte, 0, 1024) doesn't escape to heap at
least in Go 1.19 and 1.23
Signed-off-by: Alexandr Stefurishin <[email protected]>
0 commit comments