Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Ensure uniqueness of precomp dependences.
Some background:
I noticed duplicate entries appearing in some of the `lib/.precomp/*.rev-deps` when doing the following:
```
$ panda installdeps PDF
$ panda look PDF
.panda-work/1452532671_1$ time perl6 -I lib -e'use PDF::DAO::Doc'
.panda-work/1452532671_1$ time perl6 -I lib -e'use PDF::DAO::Doc'
```
With this patch, duplicates are removed from `*.rev-deps` and the second `use PDF::DAO::Doc` only takes about half the time.
  • Loading branch information
dwarring committed Jan 11, 2016
1 parent aefe2c2 commit 98ee2da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/CompUnit/PrecompilationRepository.pm
Expand Up @@ -123,7 +123,7 @@ class CompUnit::PrecompilationRepository::Default does CompUnit::PrecompilationR
%ENV.DELETE-KEY(<RAKUDO_PRECOMP_LOADING>);
%ENV<RAKUDO_PRECOMP_DIST> = $current_dist;

my @result = $proc.out.lines;
my @result = $proc.out.lines.unique;
if not $proc.out.close or $proc.status { # something wrong
self.store.unlock;
push @result, "Return status { $proc.status }\n";
Expand Down

0 comments on commit 98ee2da

Please sign in to comment.