Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Agree that mark phase is the expensive bit. Disagree that it’s not worth reducing short-lived allocations. I spend a lot of time analyzing Go program performance, and reducing bytes allocated per second is always beneficial.


+1. In particular []byte slice allocations are often a significant driver of GC pace while also being relatively easy to optimize (e.g. via sync.Pool reuse).




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: