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)
Tue, Feb 18, 12:38 AM
Unknown Object (File)
Sun, Feb 16, 6:55 AM
Unknown Object (File)
Sun, Feb 9, 1:44 AM
Unknown Object (File)
Thu, Jan 30, 11:19 PM
Unknown Object (File)
Jan 29 2025, 6:46 AM
Unknown Object (File)
Jan 25 2025, 4:09 PM
Unknown Object (File)
Jan 23 2025, 11:50 PM
Unknown Object (File)
Jan 23 2025, 3:41 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.