summaryrefslogtreecommitdiffstats
path: root/xpcom/ds/nsIAtom.idl
diff options
context:
space:
mode:
authorwin7-7 <win7-7@users.noreply.github.com>2019-05-24 13:58:13 +0300
committerGitHub <noreply@github.com>2019-05-24 13:58:13 +0300
commitddff63b2d6c22468cd413c16968558f77fd00bb3 (patch)
tree4c6d864909cd8a9677ded9d0c4f2d3864230e7a0 /xpcom/ds/nsIAtom.idl
parenta3434ba005b8eaa52fdcdfc3392b640f25f10410 (diff)
downloadUXP-ddff63b2d6c22468cd413c16968558f77fd00bb3.tar
UXP-ddff63b2d6c22468cd413c16968558f77fd00bb3.tar.gz
UXP-ddff63b2d6c22468cd413c16968558f77fd00bb3.tar.lz
UXP-ddff63b2d6c22468cd413c16968558f77fd00bb3.tar.xz
UXP-ddff63b2d6c22468cd413c16968558f77fd00bb3.zip
add main thread only cache for nsIAtoms to speed up atomization xpcom/ds
add main thread only cache for nsIAtoms to speed up atomization
Diffstat (limited to 'xpcom/ds/nsIAtom.idl')
-rw-r--r--xpcom/ds/nsIAtom.idl5
1 files changed, 5 insertions, 0 deletions
diff --git a/xpcom/ds/nsIAtom.idl b/xpcom/ds/nsIAtom.idl
index c02540838..6e8602c42 100644
--- a/xpcom/ds/nsIAtom.idl
+++ b/xpcom/ds/nsIAtom.idl
@@ -120,6 +120,11 @@ extern already_AddRefed<nsIAtom> NS_Atomize(const char16_t* aUTF16String);
extern already_AddRefed<nsIAtom> NS_Atomize(const nsAString& aUTF16String);
/**
+ * An optimized version of the method above for the main thread.
+ */
+extern already_AddRefed<nsIAtom> NS_AtomizeMainThread(const nsAString& aUTF16String);
+
+/**
* Return a count of the total number of atoms currently
* alive in the system.
*/