How does Intel TBB's scalable_allocator work?

前端 未结 2 2081
南笙
南笙 2020-12-04 10:45

What does the tbb::scalable_allocator in Intel Threading Building Blocks actually do under the hood ?

It can certainly be effective. I\'ve just used it

2条回答
  •  心在旅途
    2020-12-04 11:01

    The solution you mentioned is optimized for Intel CPUs. It incorporates specific CPU mechanisms to improve performance.

    Sometime ago I found another very useful solution: Fast C++11 allocator for STL containers. It slightly speeds up STL containers on VS2017 (~5x) as well as on GCC (~7x). It uses memory pool for elements allocation which makes it extremely effective for all platofrms.

提交回复
热议问题