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

Regardless whether you're coding in C++ or Java, this sort of code needs to use scratch allocators or pooled objects everywhere that matters. Both languages have some nominal support for this via e.g. std::pmr and SegmentAllocator but I wouldn't stretch as far to say either feels idiomatic.
 help



Or you could simply switch to a performance-tuned allocator, such as mimalloc, tcmalloc, jemalloc, etc.



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

Search: