Skip to content
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

Possible slowdown in is-prime #2945

Open
MasterDuke17 opened this issue Jun 1, 2019 · 4 comments
Open

Possible slowdown in is-prime #2945

MasterDuke17 opened this issue Jun 1, 2019 · 4 comments
Labels
performance regression Issue did not exist previously weird

Comments

@MasterDuke17
Copy link
Contributor

On my system, at HEAD, (^10_000).grep(*.is-prime).tail.say; say now - INIT now reports ~2.2s, but 2018.12 reports ~1.3s.

@MasterDuke17 MasterDuke17 changed the title Possible slowdown in grep or is-prime or tail Possible slowdown in is-prime Jun 1, 2019
@lizmat
Copy link
Contributor

lizmat commented Jun 2, 2019

$ perl6 --profile -e '(^10_000).grep(*.is-prime).tail.say'

produces a profile for me that spends ~ 99% of the time in is-prime. And I don't think that has been changed at all since then. Could you reproduce this performance difference with something other than is-prime ?

@MasterDuke17
Copy link
Contributor Author

MasterDuke17 commented Jun 2, 2019 via email

@AlexDaniel
Copy link
Contributor

So there's this (GCC-related): #2945

And then this:

¦7d7aaf0c1d2^: «29989␤5.1725937␤»
¦7d7aaf0     : «29989␤6.4280064␤»

7d7aaf0 and this commit specifically: MoarVM/MoarVM@304f568
Haven't checked if it's a compiler difference again, but I guess it's not.

@AlexDaniel AlexDaniel added regression Issue did not exist previously performance labels Jun 14, 2019
@AlexDaniel
Copy link
Contributor

Then there's also this:

¦787596d00^: «29989␤5.76303753␤»
¦4459364:    «29989␤8.2163708␤»

And the commits in between are:

Not sure what that is about, could it be that some compiler flags are not being passed correctly? Ping @PatZim

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
performance regression Issue did not exist previously weird
Projects
None yet
Development

No branches or pull requests

3 participants