Intel® C++ Compiler
Support and discussions for creating C++ code that runs on platforms based on Intel® processors.
Announcements
This community is designed for sharing of public information. Please do not share Intel or third-party confidential information here.
7681 Discussions

tbb::cache_aligned_allocator or scalable_allocator?

buraktamturk
Beginner
265 Views
Hello, i am tring to use tbb's new allocator on every container and string. Which allocator is faster for strings and stringstreams?

std::basic_stringstream, tbb::tbb_allocator> content1;
or like that std::map<:BASIC_STRING>, tbb::tbb_allocator>, std::basic_string, tbb::tbb_allocator>, less<:BASIC_STRING>, tbb::tbb_allocator>>, tbb::tbb_allocator<:PAIR><:BASIC_STRING>, tbb::tbb_allocator>, std::basic_string, tbb::tbb_allocator>>>> qlUser;

and how i can use tbb::interface4::concurrent_hash_map, there is a several example but i cannot get work with small isapi filter. And does it will incrase speed just for 6-7 data?

and there is a tbbmalloc_proxy.h header file,
when i use it in isapi ext and filter will my iis use tbb allocator, or just my codes, how it works? Does it replace normal malloc function pointers to scalable ones?

Thank You,
Best Regards.
0 Kudos
1 Solution
TimP
Black Belt
265 Views
There's a separate forum section for tbb. If I had to guess, I wouldn't expect signficant differences among allocators, provided that you minimize the number of separate allocator invocations.

View solution in original post

1 Reply
TimP
Black Belt
266 Views
There's a separate forum section for tbb. If I had to guess, I wouldn't expect signficant differences among allocators, provided that you minimize the number of separate allocator invocations.
Reply