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

Fixed tests not using ltalloc... #20

Closed jlaumon closed 6 years ago

jlaumon commented 6 years ago

That's a little bit embarrassing 😅

I disabled the global new operators with a define in cmake to make sure catch2 (the test framework) didn't use ltalloc to make its internal allocations, but I forgot to replace the news and deletes in the test code...

Good news is: the tests are running a lot faster now that they use ltalloc (I didn't expect that big a difference: on appveyor it went from ~16 millions operations per second to ~115 😮 🚀).

r-lyeh commented 6 years ago

Great thx!