-
Notifications
You must be signed in to change notification settings - Fork 3
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
Slow division on iOS 15.0 vs 16.4 #59
Comments
All of the time is spend calling |
It seems everything is slower on Xcode 14.2 (iPhone 14 Pro), but not as slow as above. |
Probably iOS 16 was the first iOS release to pick up this optimisation of __udivmodti4 by @danlark1. Seems a bit late - that patch was integrated in 2020, iOS 16 was released in 2022 - but maybe that's the speed of Swift/LLVM in this regard. It's pretty funny that the implementation prior to that patch was based on a C translation of PowerPC assembly for a 64-bit divmod function for 32-bit architectures. 😆 (The PowerPC Compiler Writer’s Guide) |
Those were interesting reads. Thanks! I appreciate that you found the source of the problem. Since it has been solved, in a way, I suppose I'll close this issue when iOS 15 gets phased out. |
I think this is a low-priority issue, but still (#58):
The text was updated successfully, but these errors were encountered: