]> khamidou — GitHub mirrors - arcanist.git/commit
Improve performance of XHPASTLinter
authorepriestley <git@epriestley.com>
Thu, 8 Mar 2012 20:20:46 +0000 (12:20 -0800)
committerepriestley <git@epriestley.com>
Thu, 8 Mar 2012 20:20:46 +0000 (12:20 -0800)
commit8088b4cdacf1691f8760470b4cb6caea6accf649
treec47a14fc4548694c8e2523e18224e1675f2bce13
parent92febf184eafbad6665d9a23a91289fcc62a51cc
Improve performance of XHPASTLinter

Summary:
  - XHPASTLinter + coverage is ass-slow.
  - Use caching/perf options introduced by D1828.

Test Plan:
  - Ran profiling for unit tests with new --xprofile command line flag.
  - Old profile: https://secure.phabricator.com/xhprof/profile/PHID-FILE-uiuwsqa5wulj7eyfkjy2/
  - New profile: https://secure.phabricator.com/xhprof/profile/PHID-FILE-nl635t3jcp2sfo2spzwu/
  - Overall runtime decreased from 18.2s to 3.7s (4.9x performance increase) with coverage enabled.

Reviewers: btrahan

Reviewed By: btrahan

CC: aran, epriestley
Differential Revision: https://secure.phabricator.com/D1829
src/lint/linter/xhpast/ArcanistXHPASTLinter.php