Hacker News new | ask | show | jobs
by int0x2e 1083 days ago
That works for some types of code and fails for other types. If you have very long lived but memory heavy apps, allocations really matter...
1 comments

There's other ways to avoid the problem. One is to just restart the whole process every so often.

Also, copies are not bad and they're often a better tradeoff than microoptimizing all your lifetimes.