Skip to content

Conversation

@spartajet
Copy link
Contributor

Replace serial iterators with par_iter_mut() for improved performance. Leverage Rayon for parallel processing of image pixels. Maintains same functionality while potentially reducing processing time.

Replace serial iterators with par_iter_mut() for improved performance.
Leverage Rayon for parallel processing of image pixels.
Maintains same functionality while potentially reducing processing time.
@OrangeHoopla
Copy link
Contributor

Would it make more sense to create a secondary function for this that uses par_iter so if users want to run this single threaded they have that option? Also the time to setup the thread pool might take more time then to just run this in a single threaded instance.

@spartajet
Copy link
Contributor Author

You are right, I will create new function like threshold_mut_parallel

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants