Skip to content

Remove mutexes from lib.rs - #333

Merged
drobnyjt merged 5 commits into
devfrom
rayon_reduce
Aug 11, 2026
Merged

Remove mutexes from lib.rs#333
drobnyjt merged 5 commits into
devfrom
rayon_reduce

Conversation

@drobnyjt

Copy link
Copy Markdown
Collaborator

Thank you for your contribution to rustBCA!

Before submitting this PR, please make sure you have:

  • Opened an issue
  • Referenced the relevant issue number(s) below
  • Provided a description of the changes below
  • Ensured all tests pass and added any necessary tests for new code

Fixes #332

Description

Instead of a complicated rayon reduce, it turns out that rayon map_init is order-preserving so I can just call sum at the end and get a reproducible result.

Tests

examples/test_rustbca.py; independent testing of reflection_coefficient with different threads

@drobnyjt
drobnyjt merged commit fd2d99a into dev Aug 11, 2026
2 checks passed
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.

1 participant