Page MenuHomePhabricator

Improve some settings-related performance
ClosedPublic

Authored by epriestley on Jun 5 2016, 2:49 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Apr 25, 12:06 AM
Unknown Object (File)
Fri, Apr 19, 4:49 PM
Unknown Object (File)
Wed, Apr 17, 2:37 PM
Unknown Object (File)
Thu, Apr 11, 10:07 AM
Unknown Object (File)
Sun, Apr 7, 3:38 AM
Unknown Object (File)
Fri, Apr 5, 8:32 PM
Unknown Object (File)
Thu, Apr 4, 3:54 AM
Unknown Object (File)
Mon, Apr 1, 1:21 PM
Subscribers
None

Details

Summary

Ref T4103. Two small improvements:

  • Don't work as hard to validate translations. We just need to know if a translation exists, we don't need to count how many strings it has and build the entire menu.
  • Allow getUserSetting() to work on any setting without doing all the application/visibility checks. It's OK for code to look at, say, your "Conpherence Notifications" setting even if that application is not installed for you.
Test Plan

Used XHProf and saw 404 page drop from ~60ms to ~40ms locally.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

epriestley retitled this revision from to Improve some settings-related performance.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added a reviewer: chad.
chad edited edge metadata.
This revision is now accepted and ready to land.Jun 5 2016, 5:31 PM
This revision was automatically updated to reflect the committed changes.