Page MenuHomePhabricator

Linter performance optimization
ClosedPublic

Authored by joshuaspence on Jul 3 2015, 3:05 PM.
Tags
None
Referenced Files
F19094930: D13541.id.diff
Thu, Dec 4, 3:29 AM
F18869582: D13541.diff
Nov 4 2025, 12:28 PM
F18864140: D13541.id.diff
Nov 3 2025, 3:24 AM
F18849861: D13541.id32792.diff
Oct 30 2025, 12:33 PM
F18784567: D13541.id.diff
Oct 13 2025, 1:01 PM
F18776470: D13541.id32721.diff
Oct 10 2025, 10:08 PM
F18744500: D13541.id.diff
Oct 3 2025, 3:12 AM
F18743439: D13541.diff
Oct 2 2025, 11:40 PM
Subscribers

Details

Summary

Optimize ArcanistXHPASTLinterRule::getLintID.

Test Plan

Compare before and after.

Diff Detail

Repository
rARC Arcanist
Branch
master
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 7166
Build 7377: [Placeholder Plan] Wait for 30 Seconds
Build 7376: arc lint + arc unit

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.