Re:Optimizing Go string operations with practical examples
by NAHWheatCracker on Sunday December 03, 2023 @06:30PM
(#38511888)
FWIW, I moved away from bufio.Scanner and now I just do one os.ReadFile() call to get the whole thing as bytes and wrote a little function to break it into lines. I'm not using strings anymore and I eeked out a bit of performance for all three days.
[ Parent
| on HN ]
There are no comments on this comment yet.