diff options
author | win7-7 <win7-7@users.noreply.github.com> | 2019-05-24 13:58:13 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-24 13:58:13 +0300 |
commit | ddff63b2d6c22468cd413c16968558f77fd00bb3 (patch) | |
tree | 4c6d864909cd8a9677ded9d0c4f2d3864230e7a0 /xpcom/ds/nsIAtom.idl | |
parent | a3434ba005b8eaa52fdcdfc3392b640f25f10410 (diff) | |
download | UXP-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.idl | 5 |
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. */ |