Here are my custom allocation functions I wrote about a week ago. Their performance is better than new by anywhere from 30 - 500%. However, they are only single thread access safe. Unless I need multithreaded access I am going to use these for anything performance heavy. I use a lot of vs features in here, if you are interested in learning new things feel free to take a look. I included: templates, ternary operator( not new but, not often used ), rvalue references, placement new, parameter packs, custom stl allocators, custom deleters, and template aliasing. Good luck understanding why I did certain things though like lol xD. BTW thanks for assisting me in coding these functions Luis!
HeapAlloc.h [5.63 KiB]
Downloaded 58 times
Computer too slow? Consider running a VM on your toaster.