memory management - Compelling examples of custom C++ allocators? -
What are some good reasons for the std :: allocator gap in favor of a custom solution? Do you participate in situations where it was absolutely necessary for correct, performance, scalability etc.? Any very clever example?
Custom allocation is always a feature of the standard library that I did not have much need. I was just wondering if anyone can find some compelling examples to justify their existence here.
I mentioned, I have noticed that only one single in the custom STL allocation of Intel TBB
std :: vector & lt; T & gt; The performance of a multi-threaded app has improved greatly by changing. to
std :: vector & lt; T, tbb :: scalable_allocator & lt; T & gt; & Gt; (TBB's Nifty Thread - This is a quick and convenient way to switch allocator to use a private stack; see)
Comments
Post a Comment