Ad
  • Custom User Avatar

    Is using sb.Grow before a loop always going to be more performant than using buffer.WriteString within a loop? I'm not familiar w/ Golang compiler internals nor it's optimizations, but I kind of assume there could less memory allocation ops in your solution, if compiler doesn't translate both versions to the same machine code.