When I was trying to figure out how to use the std::allocator class, I remember coming across a post stating a replacement allocator class that increased speed greatly when used. I cannot find the thread, and Googling the subject didn't yield any good results. Does anyone have any idea of what replacement class was mentioned?
Hmmm, I can't recall such a thread, but I do know that it is virtually impossible
given the requirements/constraints to write a useful allocator. (It has to be
stateless).
If in doubt stick to the standard allocator. If you actually need it it does the job reasonably well and, as jsmith notes, writing one is going to be extremely difficult.
Take a look at boost maybe; there may be such a class in those libraries.
I know that the standard allocator works well, but a little speed boost doesn't hurt. I just remember seeing something like that mentioned, and hoped that someone would know something about it. Oh well.