mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-25 11:37:43 -10:00
Calling self.test_defaults_for_path() from files_info() with tens of thousands of paths resulted in a CPU explosion in various path normalization functions. I don't think it was so much the complexity of the operations as much as the volume. For an input with 9131 elements, this reduces execution time of a mach command from ~25.7s to ~8.8s. With ~42,000 inputs, execution time drops from <it took too long and I gave up> to ~90s. MozReview-Commit-ID: pjQQByi2Bc
This directory contains common Python code. The basic rule is that if Python code is cross-module (that's "module" in the Mozilla meaning - as in "module ownership") and is MPL-compatible, it should go here. What should not go here: * Python that is not MPL-compatible (see other-licenses/) * Python that has good reason to remain close to its "owning" (Mozilla) module (e.g. it is only being consumed from there). Historical information can be found at https://bugzilla.mozilla.org/show_bug.cgi?id=775243 ## pyyaml | pystache Used in taskcluster related mach commands to update download from github and remove .git and tests. Then run tests in taskcluster/tests/