mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 07:42:04 +00:00
666423b6d5
This is two straightforward optimizations in FileCopier: avoiding a redundant iteration over the directory structure to find destination files (which includes a call to normpath) and avoiding redundant calls to determine directories to preserve when remove_unaccounted is not specified (which include a call to dirname). Running a no-op install of _tests with this patch results in a reduction of about 25,000 calls to normpath and remove about 220,000 calls to dirname, resulting in an overall speedup of 10-20%. --HG-- extra : commitid : 8nyTo489q8X |
||
---|---|---|
.. | ||
chrome | ||
packager | ||
test | ||
__init__.py | ||
copier.py | ||
dmg.py | ||
errors.py | ||
executables.py | ||
files.py | ||
hg.py | ||
manifests.py | ||
mozjar.py | ||
path.py | ||
unify.py |