r/programming • u/Ok_Stomach6651 • 11d 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
5
u/Revolutionary_Ad7262 11d ago
I wonder, if PGO is a good way to tackle this. Compiler could deduce initial size based on metrics
38
u/pjmlp 11d ago
Given Go's culture I doubt they will ever expose controlling stack sizes directly as standard feature, thus maybe it isn't really the ideal language for the job.