-
Notifications
You must be signed in to change notification settings - Fork 986
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
--optimize-level 3 slowing things down #892
Comments
This works as expected (i.e., optimize level 3 is faster) on |
i've got same timings approx as @mml. level 3 is slower
|
I see the slowdown on arm64osx and a6le. It looks like the issue is that the cp0 inline handler for We can cut a lot of (unmeasured) overhead from the test by replacing the (let ()
(define (add-quo-rem total x)
(let-values ([(quo rem) (fxdiv-and-mod x 1000)])
(+ total quo rem)))
(define total
(time
(do ([x 0 (fx+ x 1)]
[total 0 (add-quo-rem total x)])
((fx= x 300000000) total))))
(printf "Total ~:d~n" total)) |
Yesterday I filed a bug prematurely, but I knew something was not quite right. The code below takes >30% longer with
--optimize-level 3
than without it.The text was updated successfully, but these errors were encountered: