-
Notifications
You must be signed in to change notification settings - Fork 119
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ENH: ImageRandomCoordinateSampler
UseMultiThread
use ITK's ThreadPool
Internally calling `multiThreader.SingleMethodExecute()`, instead of overriding `ThreadedGenerateData`. When 10'000 random samples are retrieved, a significant performance improvement is observed by enabling `UseMultiThread`: from ~48 millisecond (single-threaded) to ~40 millisecond (multi-threaded). When 100'000 random samples are retrieved, even from ~123 to ~56 millisecond: Tested on a Windows 10 PC (6 cores, 12 logical processors), VS2019 Release build. Follow-up to pull request #973 commit ca9e9ec "ENH: ImageRandomSampler `UseMultiThread` now using ITK's ThreadPool"
- Loading branch information
Showing
3 changed files
with
114 additions
and
146 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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