Closed MasterDuke17 closed 5 years ago
Why is this not a rakudobug? How come something as simple as $x…1
can't be optimized significantly?
It sometimes is re-written into a while, but I think maybe only in the case of literal or compile-time-known values.
Thanks! Although I advice to file a perf rakudobug too.
@MasterDuke17 this makes one of the tests fail.
The output doesn't help much:
not ok 34 - strict-partitions(10)
# Failed test 'strict-partitions(10)'
# at t/support.t6 line 51
# expected: Seq.new-consumed()
# matcher: 'infix:<~~>'
# got: Seq.new-consumed()
# You failed 1 test of 34
I tested it now on a commit before this PR, and all tests are OK.
Huh, I ran the tests and it was fine. Have their been new tests since then?
Sent from my iPhone
On Jul 20, 2019, at 3:46 PM, Aleks-Daniel Jakimenko-Aleksejev notifications@github.com wrote:
@MasterDuke17 this makes one of the tests fail.
The output doesn't help much:
not ok 34 - strict-partitions(10)
Failed test 'strict-partitions(10)'
at t/support.t6 line 51
expected: Seq.new-consumed()
matcher: 'infix:<~~>'
got: Seq.new-consumed()
You failed 1 test of 34
I tested it now on a commit before this PR, and all tests are OK.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.
No.
By using an explicit loop instead of the sequence operator.
On my machine,
use Math::Sequences::Integer; say @A000793[^40]
went from 7s before to 3s after.