Comment by vinay_ys
3 years ago
Either use a full-fledged library like tcmalloc or jemalloc with profiler and debugger capabilities built-in or do tooled generated code that's ensured to be bug-free and usually tied to lifecycle of request/response or connection etc (or game level, scene, session etc). Hand-rolling like this in 2023 is neither necessary nor optimal.
No comments yet
Contribute on Hacker News ↗