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

Init TBB symbols lazily but only once #700

Open
vinser52 opened this issue Aug 27, 2024 · 0 comments
Open

Init TBB symbols lazily but only once #700

vinser52 opened this issue Aug 27, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@vinser52
Copy link
Contributor

Description

Today UMF loads TBB library via dlopen every time the scalable pool instance is created. It is done by tbb_pool_initialize function by calling init_tbb_callbacks. We can optimize it by loading TBB library and looking for appropriate TBB symbols only once (at the first access).

API Changes

N/A

Implementation details

A scalable pool instance should not have a copy of TBB symbols, it should be a global structure of tbb symbols that is initialized lazily only once.

@vinser52 vinser52 added the enhancement New feature or request label Aug 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant