Closed Bug 1376317 Opened 2 years ago Closed 2 years ago
Move the pref var cache for dom
.placeholder .show _on _focus to ns Content Utils
While profiling Speedometer, I noticed that nsTextEditorState::UpdateOverlayTextVisibility() shows up as fairly hot. Looking at this function under perf, most of the cost of the function goes towards checking the static sPrefCached variable for some reason, perhaps due to poor locality. Moving this pref cache fully to nsContentUtils alleviates this dumb issue.
Pushed by email@example.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/f7c45d2ed511 Move the pref var cache for dom.placeholder.show_on_focus to nsContentUtils; r=smaug
You need to log in before you can comment on or make changes to this bug.