Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there a concurrent_hash_set container ? #1584

Open
fdiedler opened this issue Dec 12, 2024 · 2 comments
Open

Is there a concurrent_hash_set container ? #1584

fdiedler opened this issue Dec 12, 2024 · 2 comments
Labels

Comments

@fdiedler
Copy link

Hi,

I see there is a concurrent_hash_map container but no concurrent_hash_set container in TBB. Is it possible to have concurrent_hash_set container ?

The concurrent_unordered_set seems to have poor performance in my application in the clear() operation.

Thanks,

@pavelkumbrasev
Copy link
Contributor

We do not have concurrent_hash_set in oneTBB but you still can use concurrent_hash_map and just ignore the value (use something like bool to save some memory).
@kboyarinov what do you think is it possible to extend concurrent_hash_map to support the set behavior?

@kboyarinov
Copy link
Contributor

@pavelkumbrasev @fdiedler
I think in theory it is possible to add a hash set container on top of concurrent_hash_map engine. Could you please explain your use case for such case as well as the performance issues with concurrent_unordered_set::clear to proper understand the motivation for such an extension?
Thanks in advance

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants