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
infix:<X> greatly slower than nested for loops #2900
Comments
From @jnthnGiven the following code: ~~ sub ltp_2 { say now; say now; The output is: Instant:1347656155.562 That is, 146s vs. 50s (that's after an initial optimization to Curiously, in the problem that showed this up: http://rosettacode.org/wiki/Truncatable_primes#Perl_6 The difference was even more pronounced after switching to the for loop http://irclog.perlgeek.de/perl6/2012-09-14#i_5988681 For the record, it used to read: for (9...1) X (9...1) X (9...1) X (9...1) X (9...1) X (9,7,3) -> Would be good to get to the bottom of why it's so much slower and see if /jnthn Functions |
From @cokeTagging [GLR] as hopefully this will be improved enough to close with moar/GLR. |
1 similar comment
From @cokeTagging [GLR] as hopefully this will be improved enough to close with moar/GLR. |
From @ninerThe example needed a little change after GLR: With that the X version runs in 8.6 seconds on my machine while the nested for loop version takes 9.8 seconds. |
The RT System itself - Status changed from 'new' to 'open' |
@niner - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#114918 (status was 'resolved')
Searchable as RT114918$
The text was updated successfully, but these errors were encountered: