reth icon indicating copy to clipboard operation
reth copied to clipboard

Gate `rayon` usage behind a feature

Open lightsing opened this issue 11 months ago • 1 comments
trafficstars

Describe the feature

There's serval reasons to do this:

  • when using alloy-primitives::map::HashMap (eg. std not enabled), the rayon::IntoParallelIterator is not enabled for alloy-primitives::map::HashMap by default, also alloy-primitives did not re-export the hashbrown/rayon feature, user have to enable it via hashbrown crate.
  • for zk related usage, parallel is usually not a thing, rayon introduce extra cost here.

Additional context

No response

lightsing avatar Dec 19 '24 06:12 lightsing