memory management, limited lifespan of goroutines #31
Replies: 1 comment
-
Hey @justjoeactually, that's a good point. Thank you! Here's an article that does a great job explaining stacks and frames: https://www.ardanlabs.com/blog/2017/05/language-mechanics-on-stacks-and-pointers.html |
Beta Was this translation helpful? Give feedback.
-
A goroutine's stack can increase the size of memory but never decreases, is there any interest in a feature to limit the lifespan of a goroutine to avoid rising memory consumption because each worker increases stack memory size for one execution but doesn't need to keep it forever? Simple implementations are a limited execution counter or a time to live.
Beta Was this translation helpful? Give feedback.
All reactions