[perl #111848] [BUG] The storage strategy for arrays is weird in Rakudo

2012-03-19 Thread Patrick R. Michaud via RT
The speed of Array vs. Hash element access is partially addressed by commit c10792f8. Before this commit, each Array element access via .at_pos($pos) resulted in an expensive call to self.exists($pos) for each access, whereas Hash element accesses via .at_key($key) were able to use nqp::exists

[perl #111848] [BUG] The storage strategy for arrays is weird in Rakudo

2012-03-19 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #111848] # in the subject line of all future correspondence about this issue. # https://rt.perl.org:443/rt3/Ticket/Display.html?id=111848 > r: my $t = now; my @a; @a[ $_ ] = $_ for 1 .. 1e4; print now - $t rakudo 1968b8