logoalt Hacker News

throwaway894345yesterday at 11:23 PM2 repliesview on HN

Isn’t it somewhat easy to remove allocations in Go? I haven’t had to “rewrite” as such, but rather lifting some allocation out of loop. Am I misunderstanding the scenario?


Replies

fpolingyesterday at 11:31 PM

With backend serving many clients with widely varying performance profile of individual requests when latency spikes happen there is no particular hot loop. Just many go routines each doing reasonable thing but with a particular request pattern hitting pathological case of GC.

ted_dunningtoday at 2:51 AM

Removing enough allocations to avoid fragmentation can be maddenly difficult/tedious.