Remix.run Logo
▲ yeureka 4 hours ago

Bloomberg writes all of its C++ using an allocator aware version of the STL because of this issue. It’s open source and very high quality: https://github.com/bloomberg/bde

▲denverllc 32 minutes ago | parent | next [-]

Given how far allocators have come (like mimalloc or jemalloc) I would be interested to see if they make up some of the gap between the standard allocators (easy but not performant) and intrusive container allocators like in BDE

▲ibobev 3 hours ago | parent | prev [-]

What do you mean by "allocator-aware version of the STL"? The standard STL is also allocator-aware, and its containers have versions with a template allocator parameter and a polymorphic allocator.

▲whorleater an hour ago | parent | next [-]

https://bloomberg.github.io/bde/white_papers/unleashing-aa-s...

lakos was one of the primary drivers of this

▲yeureka 3 hours ago | parent | prev [-]

That is correct. However at Bloomberg all functions that potentially allocate memory have to have an allocator passed as an argument or use a local allocator since the BDE requires allocator parameters to always be passed, there are no default allocator arguments like in the STL.