This repository was archived by the owner on Dec 1, 2024. It is now read-only.
Repository navigation
Performance improvements, easier profiling, add `--hhvm-4.2-to-4.3` migration flag
This release:
- improves performance of linting extremely large files with lots of lint errors by ~ 65%
- adds the
--xhprof-dot foo.dotparameter tohhast-lint, to generate a.dotfile suitable for use with GraphViz - add
--hhvm-4.2-to-4.3tohhast-migrateas an alias of--ltgt-to-ne, replacing the<>operator with!= - fixes a race condition in the LSP server that could lead to a crash; crashes are extremely harmful to performance with a JIT runtime
- added
rewriteChildren()as a shallow alternative torewriteDescendants()
Performance advice for linter authors
- rewriting the AST is expensive; avoid
if (fixed_node($in) !== $in) { raise_error() }-like code - prefer
replace()overrewriteChildren()overrewriteDescendants()overrewrite()