mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-01 00:32:11 +00:00
60b1f563cb
This reduces memory usage because we only need one allocation instead of two for the dynamic atom and its chars, and because we don't need to store a refcount and a size. It precludes sharing of chars between dynamic atoms, but we weren't benefiting much from that anyway. This reduces per-process memory usage by up to several hundred KiB on my Linux64 box. One consequence of this change is that we need to allocate + copy in DOMString::SetKnownLiveAtom(), which could make some things slower. --HG-- extra : rebase_source : ba4065ea31e509dd985c003614199f73def0596c |
||
---|---|---|
.. | ||
expat | ||
html | ||
htmlparser | ||
xml | ||
moz.build | ||
nsCharsetSource.h |