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 array slicing #5234
Comments
From @MasterDuke17'@array[0, 3, 7]' is much slower than '(@array[0], @array[3], @array[7])' time perl6 -e 'my @a = ^500;my @f;my $s = @a.elems;loop (my $i1 = 0; $i1 < real 0m14.974s time perl6 -e 'my @a = ^500;my @f;my $s = @a.elems;loop (my $i1 = 0; $i1 < real 0m0.897s With Rakudo version 2016.03 built on MoarVM version 2016.03 Dan |
From @lizmat
This is a known issue. Anytime you use lists, the optimization paths are not that well developed yet. To give you another example: $ 6 'for ^100000 { my ($a,$b) = 42,666 }' $ 6 'for ^100000 { my $a = 42; my $b = 666 }' $ 6 'for ^100000 { my $a; my $b }' $ 6 'say (1628 - 170) / (180 - 170)’ Liz |
The RT System itself - Status changed from 'new' to 'open' |
From @MasterDuke17Where in Rakudo is the slowdown? I'm by no means a compiler developer, but Dan On Wed, Apr 13, 2016 at 8:04 AM, Elizabeth Mattijsen via RT <
|
From @zoffixznetStill present in 2016.06-154-g55c359e built on MoarVM version 2016.06-9-g8fc21d5 zoffix@VirtualBox:~$ 6 'for ^100000 { my ($a,$b) = 42,666 }' real 0m1.052s real 0m0.181s real 0m0.236s |
From @AlexDanielFWIW this issue was noticed today: https://irclog.perlgeek.de/perl6/2017-12-16#i_15587006 On 2016-04-11 20:40:43, ddgreen@gmail.com wrote:
|
Migrated from rt.perl.org#127881 (status was 'open')
Searchable as RT127881$
The text was updated successfully, but these errors were encountered: