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

feat: optional rayon #13552

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

Conversation

lightsing
Copy link
Contributor

@lightsing lightsing commented Dec 25, 2024

related issue: #13443

todo: when alloy-core is bumped to a release contains alloy-rs/core#827, propagate feature to alloy-primitives/rayon

Copy link

codspeed-hq bot commented Dec 25, 2024

CodSpeed Performance Report

Merging #13552 will degrade performances by 10.66%

Comparing scroll-tech:feat/opt-rayon (97c2188) with main (c6e38be)

Summary

⚡ 1 improvements
❌ 1 regressions
✅ 75 untouched benchmarks

⚠️ Please fix the performance issues or acknowledge them on CodSpeed.

Benchmarks breakdown

Benchmark main scroll-tech:feat/opt-rayon Change
`hash builder[init size 1000 update size 100 num updates 1]` 2.4 ms
`hash builder[init size 10000 update size 100 num updates 1]` 10.1 ms

Comment on lines +96 to +101
/// Helper trait that requires rayon since `rayon` feature is enabled.
#[cfg(feature = "rayon")]
pub trait MaybeIntoParallelIterator:
rayon::iter::IntoParallelIterator<Item = <Self as MaybeIntoParallelIterator>::Item>
+ IntoIterator<Item = <Self as MaybeIntoParallelIterator>::Item>
{
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not really a fan of this,

I think I'd rather two recovery fns instead

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