Greetings,
Given the default memory allocator is known to be slow, it came to my attention that if we collect more information at compile-time regarding not only the type being allocated but the container type and the usage frequency then we can have much higher performance.
In the attached example, if we use a queue then we can speed up
the overall allocation time by 7x!
Regards,