gecko-dev/modules/libpref
Kris Maglione 8e4b8a954f Bug 1472523: Part 1 - Avoid string copies in preference callbacks. r=njn
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
2018-06-30 23:06:17 -07:00
..
init Merge inbound to mozilla-central a=merge 2018-07-05 03:14:19 +03:00
parser Bug 440908 - Add support for sticky and locked attributes to default prefs. r=glandium 2018-03-02 15:31:40 +11:00
test Bug 440908 - Convert sticky prefs in default pref files to the new syntax. r=glandium 2018-03-07 09:34:06 +11:00
greprefs.js Bug 1448077 - move DevTools prefs from libpref/init/all.js to devtools/shared;r=jryans 2018-04-06 12:22:53 +02:00
moz.build Bug 1445272: Add a pref to enable wasm gc in the browser/shell; r=luke 2018-03-21 14:32:47 +01:00
nsIPrefBranch.idl Bug 1414096 (attempt 2) - Remove support for nsISupportsString values in nsPrefBranch::{get,set}ComplexValue(). r=florian. 2017-11-10 09:07:48 +11:00
nsIPrefLocalizedString.idl Bug 1409635 (part 2) - Fix up nsIPrefLocalizedString. r=froydnj. 2017-10-18 16:51:56 +11:00
nsIPrefService.idl Backed out 2 changesets (bug 1425613) backed out for browser chrome failures at automation.py on a CLOSED TREE 2018-03-17 11:55:21 +02:00
nsIRelativeFilePref.idl
Preferences.cpp Bug 1472523: Part 1 - Avoid string copies in preference callbacks. r=njn 2018-06-30 23:06:17 -07:00
Preferences.h Bug 1472523: Part 1 - Avoid string copies in preference callbacks. r=njn 2018-06-30 23:06:17 -07:00
StaticPrefs.h Bug 1472523: Part 1 - Avoid string copies in preference callbacks. r=njn 2018-06-30 23:06:17 -07:00