Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

In bulk, i.e. not one-by-one as is implied and most used with RAII. RAII works best for a one-by-one use case and in well designed, performant systems the one-by-one use case is either irrelevant, rare or an anti-pattern.


Why does RAII work best in a one-by-one use case? You can have an Arena and it can be managed by RAII. That doesn't mean you're freeing each piece of memory one at a time.


if you want bulk, you can use arrays, vecs, arenas, etc.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: