Hacker News new | ask | show | jobs
by ncmncm 2320 days ago
Common knowledge, but not correct. Code to destroy objects has to be generated for regular function returns, and is jumped into by the exception handler too. Managing resources by hand, instead, would also require code, but you have to write it. Its expense arises from its fragility.
1 comments

What I meant was inserting stack frames into assembly, which are dissimilar to calling free, slowing things down.