Page MenuHomePhabricator

Linter performance optimization
ClosedPublic

Authored by joshuaspence on Jul 3 2015, 3:05 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Apr 21, 10:11 PM
Unknown Object (File)
Thu, Apr 11, 9:23 AM
Unknown Object (File)
Mar 25 2024, 1:45 PM
Unknown Object (File)
Mar 25 2024, 1:45 PM
Unknown Object (File)
Mar 25 2024, 1:45 PM
Unknown Object (File)
Mar 25 2024, 1:45 PM
Unknown Object (File)
Mar 25 2024, 1:44 PM
Unknown Object (File)
Mar 10 2024, 10:13 AM
Subscribers

Details

Summary

Optimize ArcanistXHPASTLinterRule::getLintID.

Test Plan

Compare before and after.

Diff Detail

Repository
rARC Arcanist
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

joshuaspence retitled this revision from to Linter performance optimization.
joshuaspence updated this object.
joshuaspence edited the test plan for this revision. (Show Details)
joshuaspence added a reviewer: epriestley.
epriestley edited edge metadata.

For consistency, prefer lintID.

It looks like getLintSeverity in the parent is also maybe cacheable? It's building a map every time and mpull'ing it? Caching that might make this moot.

This revision is now accepted and ready to land.Jul 3 2015, 3:21 PM
joshuaspence edited edge metadata.

Cache ArcanistXHPASTLinter::getLintNameMap and ArcanistXHPASTLinter::getLintSeverityMap

This revision was automatically updated to reflect the committed changes.