C++ Logo

std-proposals

Advanced search

Flash Alloc - 7x faster

From: Phil Bouchard <boost_at_[hidden]>
Date: Fri, 23 Jul 2021 22:23:30 -0400
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 <http://www.fornux.com>

Received on 2021-07-23 21:23:35