Cameron's custom allocation functions

The Partridge Family were neither partridges nor a family. Discuss.
Post Reply
cameron
Posts: 794
Joined: June 26th, 2012, 5:38 pm
Location: USA

Cameron's custom allocation functions

Post by cameron » November 5th, 2014, 12:09 am

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!
Attachments
HeapAlloc.h
(5.63 KiB) Downloaded 368 times
Computer too slow? Consider running a VM on your toaster.

Post Reply