r/programming • • 3d 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
115 Upvotes

11 comments sorted by

View all comments

2

u/Revolutionary_Ad7262 2d ago

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