diff options
| author | Jack Nagel | 2013-05-06 16:08:50 -0500 |
|---|---|---|
| committer | Jack Nagel | 2013-05-06 16:08:50 -0500 |
| commit | 62389cc27456151b8f3be1d064e14412cb907066 (patch) | |
| tree | f8e9a87a8b51b4a76a08495dd953778ccff353bc /Library/Formula/doublecpp.rb | |
| parent | 0d001785fdb2a6a422debd2f1756e9813ef8c04d (diff) | |
| download | homebrew-62389cc27456151b8f3be1d064e14412cb907066.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/Formula/doublecpp.rb')
0 files changed, 0 insertions, 0 deletions
