You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
perf(dash-pow): X11 slow in unoptimized builds #134
At opt-level 0, X11 takes about 180 us per 80-byte header against 4 us in release, and about 7x slower than the C rs-x11-hash it replaced at opt-level 0. A CPU profile puts about 64% of the time in wide operators and bytemuck casts: they are #[inline], so they are emitted in dash-pow and every SIMD operation becomes a function call. Raising wide's opt-level has no effect, only dash-pow's does, and Cargo ignores the profile overrides of dependencies, so downstream crates get the slow path by default.
After taking a look at the different solutions I could thiunbk about, the best option is to document the issue, and add to the README somehitng like
Unoptimized builds hash about 45 times slower than release builds. The SIMD code relies on the optimizer to turn each
vector operation into a single instruction. Optimize `dash-pow` in the root `Cargo.toml` of your workspace.
Activity
ZocoLini commentedon Nov 18, 2026
After taking a look at the different solutions I could thiunbk about, the best option is to document the issue, and add to the README somehitng like