-
-
Notifications
You must be signed in to change notification settings - Fork 29
Open
Description
It would be dandy to get rid of the only usage of unsafe :)
I ran a simple experiment where I ran cargo bench --bench tmi, then replaced the partition_point implementation with a simple slice.partition_point(pred), and got decent results, nothing like the original regressions:
rustc 1.87.0-nightly (249cb8431 2025-03-12)
The impact seems small, but I don't know the importance of this primitive on the system performance.