[Webkit-unassigned] [Bug 72404] Could save a lot of memory in CharacterData by not always storing a String

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Nov 30 18:43:11 PST 2011


https://bugs.webkit.org/show_bug.cgi?id=72404





--- Comment #10 from Erik Arvidsson <arv at chromium.org>  2011-11-30 18:43:10 PST ---
Darin, thanks for your comment. I took a quick look at AlignedBuffer and it seem to cover this use case.

I'll try to add an AlignedBuffer to my patch in progress tomorrow.

Just to make things clear. Here are my current thought.

- Use 1 bit in NodeFlags (currently 2 remaining) to determine whether we have a white space node or not.
- Use an AlignedBuffer<sizeof(String), WTF_ALIGN_OF(String)>
- Add an assert that sizeof(String) == sizeof(AtomicString)
- Based on the flag return a String or AtomicString.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list