Skip to content

Commit

Permalink
Eliminate use of %hash.update(...); that code ain't a hot path with s…
Browse files Browse the repository at this point in the history
…erialization, the method ain't in Perl 6, and (most pressingly) the Parrot implementation doesn't handle hash subclasses properly.
  • Loading branch information
jnthn committed Apr 20, 2012
1 parent 77ee7b5 commit 6f8ec7c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/how/NQPClassHOW.pm
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,9 @@ knowhow NQPClassHOW {
my @mro_reversed := nqp::clone(@!mro);
@mro_reversed.reverse();
for @mro_reversed {
%cache.update($_.HOW.method_table($_));
for $_.HOW.method_table($_) {
%cache{$_.key} := $_.value;
}
}
pir::publish_method_cache($obj, %cache);
pir::set_method_cache_authoritativeness__0Pi($obj, 1);
Expand Down

0 comments on commit 6f8ec7c

Please sign in to comment.