oilbeater / oilbeater.github.com

我的博客
https://oilbeater.com/
3 stars 2 forks source link

The Impact of Pre-allocating Slice Memory on Performance in Golang | Oilbeater's Study Room #26

Open oilbeater opened 6 months ago

oilbeater commented 6 months ago

https://oilbeater.com/en/2024/03/04/golang-slice-performance/

MJjainam commented 6 months ago

This is a great blog! Append function in Go had spoilt me. Note to self: Prefer to preallocate wherever possible.

kaato137 commented 6 months ago

Thank you for the post. Always used preallocation as a rule of thumb, but never measured the benefits that it gives.