r-lyeh-archived / ltalloc

LightweighT Almost Lock-Less Oriented for C++ programs memory allocator
BSD 3-Clause "New" or "Revised" License
164 stars 16 forks source link

Continuing development #17

Open jlaumon opened 6 years ago

jlaumon commented 6 years ago

Hello,

ltalloc is great: it's only one file, it's very fast when using lots of threads and it's relatively simple.

But it's not perfect, notably I find it annoying to port to new platforms because all the macros have to be modified inside ltalloc.cc and there are ifdefs _WIN32 scattered in the code. It's also lacking tests (there's a little bit of code here, but it's not much), and there's no benchmark to check for regressions (but maybe some code from malloc-survey could be reused).

I'd like to improve some of that by:

And maybe in the future making actual changes to the initial design (for example, I would love to have an API that takes heap objects, like nedpools in nedmalloc).

This seems to be the most recent, most active ltalloc repo, so I'm asking here:

r-lyeh commented 6 years ago

Hey thanks for the heads up. PRs are always welcome. I merge often as much as I can. Dont hesitate to work as needed :)