> On 06 Jun 2015, at 21:24, Rob Hoelz (via RT) <perl6-bugs-follo...@perl.org> 
> wrote:
> 
> # New Ticket Created by  Rob Hoelz 
> # Please include the string:  [perl #125344]
> # in the subject line of all future correspondence about this issue. 
> # <URL: https://rt.perl.org/Ticket/Display.html?id=125344 >
> 
> 
> Let's say I have an array where @array.end == $end.  Using @array[0..$end] is 
> about 20 times faster than @array[0..*].  I have attached an example script 
> that demonstrates this.<bench.p6>

If it’s the whole array that you want, have you considered using the zen slice? 
 That is still a lot faster than [0..$end].

Looking at why the * case is so slow.



Liz

Reply via email to