PERF: Set the default threader to Pool#305
Merged
N-Dekker merged 1 commit intoJun 29, 2026
Merged
Conversation
Continue to enable TBB support, but change the default threader to Pool. TBB can exhibit decreased performance in some cases, and it seems that more refinement is needed with the number of work units, etc. See: https://discourse.itk.org/t/8x-slower-registration-with-itk-elastix-python-api-vs-elastix-cli-minimal-reproducible-example/7736 InsightSoftwareConsortium/ITKElastix#391 This setting is consistent with the libitk conda-forge build configuration.
blowekamp
approved these changes
Jun 25, 2026
blowekamp
left a comment
Member
There was a problem hiding this comment.
LGTM.
Also note that the Pool is the default threader from the new conda-forge native ITK python package ( but Elastix is not enabled there yet).
dzenanz
approved these changes
Jun 25, 2026
|
I noticed that four different syntaxes are being used to pass a CMake option, depending on context and platform: Just wondering, would there be a way to share the code (or at least share the CMake options) between the platforms? Not an issue, just something I'm wondering 🤓 |
2f40f4b
into
InsightSoftwareConsortium:release-5.4
1 check passed
Member
Author
|
@N-Dekker there is refactoring as Python scripts that may provide more unification. |
|
Member
Author
|
Or some variant of it. |
|
I can break that PR into more digestible chunks if that's preferred. |
Member
Author
|
@CavRiley yes, smaller steps will help! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Continue to enable TBB support, but change the default threader to Pool.
TBB can exhibit decreased performance in some cases, and it seems that more refinement is needed with the number of work units, etc.
See:
https://discourse.itk.org/t/8x-slower-registration-with-itk-elastix-python-api-vs-elastix-cli-minimal-reproducible-example/7736
InsightSoftwareConsortium/ITKElastix#391
This setting is consistent with the libitk conda-forge build configuration.