[Webkit-unassigned] [Bug 22274] New: Remove support for Attr nodes for ~600k memory savings on membuster

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Nov 14 19:56:59 PST 2008


           Summary: Remove support for Attr nodes for ~600k memory savings
                    on membuster
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Macintosh
        OS/Version: Mac OS X 10.5
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: XML DOM
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: mjs at apple.com

If we remove support for Attr nodes in the DOM, we could save 3 words per
attribute, as follows:

1) Remove the Attr pointer from Attribute. (one word for the pointer)
2) Make Attribute not be refcounted any more. (one word for the refcount)
3) Change NamedAttrMap to hold a Vector<Attribute> instead of
Vector<RefPtr<Attribute> > (one word for the pointer in the vector.

There could be additional savings from reducing fragmentation.

Other browsers do not support Attr nodes and have stated they do not plan to
support them and would like them removed from standards, so it should not be a
compatibility risk to do this.

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

More information about the webkit-unassigned mailing list