-
Notifications
You must be signed in to change notification settings - Fork 13k
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
Display of integers without unsafe pointer #135265
base: master
Are you sure you want to change the base?
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @Noratrieb (or someone else) some time within the next two weeks. Please see the contribution instructions for more information. Namely, in order to ensure the minimum review times lag, PR authors and assigned reviewers should ensure that the review label (
|
r? tgross35 since I'm doing some work in this area anyway You should |
No problem if this one gets rejected in favour of anything else @tgross35. I was just pleased to see the compiler doing this well. |
Actually ignore this, I was thinking this was in
No conflict :) Replacing unsafe code is always nice if there are no drawbacks. |
It looks like there may be some small regressions here, the new code doesn't elide a couple calls to Soon it will be possible to |
The benchmarks as is measure formatting speed of literals. The first commit
black_box
-es input to simulate runtime speed instead.The second commit replaces
unsafe
pointer optimizations with plain array indices. The performance is equivalent on Apple M1. Needs peer review on Intel.Happy to do the 128-bit version too if such change is welcome.