Re:Crafting Interpreters with Rust: On Garbage Collection
by alexchamberlain on Wednesday July 31, 2024 @02:01PM
(#41121548)
That reasoning leads me to conclude the function should be short lived or the memory in use by all child functions, rather than it has to be a leaf function?
[ Parent
| on HN ]
Re:Crafting Interpreters with Rust: On Garbage Collection
by jfoutz on Wednesday July 31, 2024 @03:40PM
(#41122702)
yeah. Leaf is a good rule of thumb, but if you need a little helper to do something it's generally fine.
you really do need confidence the little helper can be fully inlined. if the helper is out of your control, and someone greatly expands its responsibility, it can suck.
So, yeah, effectively a leaf.