And here's a more generic one that is 10x faster for straight allocations.

Anyway my point being that apparently the rebind oddity has been removed from the C++20 standards but not from my system headers... So perhaps adding a similar ultra fast allocator such as this one into the stdlib would be constructive.


Regards,

--

Phil Bouchard
Founder & CTO
C.: (819) 328-4743

Fornux Logo


On 7/23/21 10:23 PM, Phil Bouchard via Std-Proposals wrote:

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,

--

Phil Bouchard
Founder & CTO
C.: (819) 328-4743

Fornux Logo