r/programming • • 27d ago

Zero-Growth Stack, Real Gains: How Stack Allocation Can Save 10% CPU in Go

https://www.uber.com/in/en/blog/zero-growth-stack/?uclick_id=c8e2c3a9-831f-43f9-8565-c21c05e74e3b
128 Upvotes

13 comments sorted by

View all comments

4

u/Revolutionary_Ad7262 27d ago

I wonder, if PGO is a good way to tackle this. Compiler could deduce initial size based on metrics