mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-20 08:45:46 +00:00
8e4b8a954f
Most preference callbacks use literal strings for their domain filters, which means that there's no need to make copies of them at all. Currently, however, every preference observer node makes a separate heap-allocated copy of its domain string. This patch switches the domain string storage to nsCString instances, which dramatically reduces the amount of unnecessary copies, at the expense of making the callback nodes slightly larger. MozReview-Commit-ID: 8NA3t2JS2UI --HG-- extra : rebase_source : 628ad9af65cec16fb8be0c8dddc608b5ee5602e2 |
||
---|---|---|
.. | ||
init | ||
parser | ||
test | ||
greprefs.js | ||
moz.build | ||
nsIPrefBranch.idl | ||
nsIPrefLocalizedString.idl | ||
nsIPrefService.idl | ||
nsIRelativeFilePref.idl | ||
Preferences.cpp | ||
Preferences.h | ||
StaticPrefs.h |