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
I've been porting a simple PHP benchmark of repeated str_replace/preg_replace to Rust (that I scaled up to have 1s runtime on my machine). First I thought it's a problem with the regex crate (more details can be found here).
But it seems to be an issue on Windows if the allocator is shared between threads (vs processes).
I've been porting a simple PHP benchmark of repeated str_replace/preg_replace to Rust (that I scaled up to have 1s runtime on my machine). First I thought it's a problem with the regex crate (more details can be found here).
But it seems to be an issue on Windows if the allocator is shared between threads (vs processes).
I expected to see this happen: total runtime at most that of the slowest thread
Instead, this happened: total runtime is as if all threads were run in sequence
I've tested it on 3 distinct Windows machines (same result) and on a macOS machine (no sequential runtime).
Meta
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: