Skip to content

Commit

Permalink
improved renderer performance slightly
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Nov 26, 2011
1 parent 677fe63 commit 92b535a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Mojolicious/Renderer.pm
Expand Up @@ -81,7 +81,7 @@ sub render {
local $stash->{extends} = $partial ? undef : $stash->{extends};

# Merge stash and arguments
while (my ($key, $value) = each %$args) { $stash->{$key} = $value }
@{$stash}{keys %$args} = values %$args;

# Extract important stash values
my $template = delete $stash->{template};
Expand Down

0 comments on commit 92b535a

Please sign in to comment.