ezelkow1 commented on pull request #4993: URL: https://github.com/apache/trafficcontrol/pull/4993#issuecomment-683911396
Update to use new allocation method to do the data map allocation all up front, turns out this is more performant reading all of the string data in at once to one dynamically allocated block and then basing the size of the map on that so that the map does not have to be continually resized BenchmarkAstatsJson-8 5836 197696 ns/op 134473 B/op 2028 allocs/op BenchmarkAstatsCSV-8 10000 110413 ns/op 110065 B/op 800 allocs/op ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
