I came across this problem several times; how to define an efficient memory pool in order to allocate chunks of memory one after the other without ensuring contiguity of data (therefore not imposing any copy on resize...). Well, I didn't really find both a satisfactory and easy answer on the web, so I decided to code my own. You can use it all you want (it's just a header to include), but please put a comment if you do, I'd like to know if this was useful and who uses it :)
Here is the Github repository.
Here is the Github repository.
No comments:
Post a Comment