diff options
| author | Jack Nagel | 2013-05-06 16:08:50 -0500 |
|---|---|---|
| committer | Jack Nagel | 2013-05-06 16:08:50 -0500 |
| commit | b32202033881d93849f4c44a837389e8a9d450ef (patch) | |
| tree | 70c0aada3617c66ddce596ccd20ba3df79fc887e /Library/Homebrew/cmd | |
| parent | 894a6c9776e33a1ece665e2f8118cd17012878fd (diff) | |
| download | brew-b32202033881d93849f4c44a837389e8a9d450ef.tar.bz2 | |
Reduce allocations in dependency construction
By always passing around a single, unnested array rather than splatting
and then defensively flattening and compacting things, we can avoid
allocating a bunch of unnecessary arrays. This gives a performance boost
of roughly 4% when enumerating 2500 formulae, and has the side effect of
cleaning up the dependency API.
Diffstat (limited to 'Library/Homebrew/cmd')
0 files changed, 0 insertions, 0 deletions
