Skip to content

Commit

Permalink
git-svn: save a little memory as fetch progresses
Browse files Browse the repository at this point in the history
There is no reason to keep entries in the %revs hash after we're
done processing a revision, so allow entries become freed as
processing continues.

Signed-off-by: Eric Wong <normalperson@yhbt.net>
  • Loading branch information
Eric Wong committed Oct 25, 2014
1 parent 6725eca commit aee7d04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion perl/Git/SVN/Ra.pm
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ sub gs_fetch_loop_common {

my %exists = map { $_->path => $_ } @$gsv;
foreach my $r (sort {$a <=> $b} keys %revs) {
my ($paths, $logged) = @{$revs{$r}};
my ($paths, $logged) = @{delete $revs{$r}};

foreach my $gs ($self->match_globs(\%exists, $paths,
$globs, $r)) {
Expand Down

0 comments on commit aee7d04

Please sign in to comment.