[Webkit-unassigned] [Bug 24891] New: WebCore can be 600K smaller

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Mar 27 12:06:38 PDT 2009


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

           Summary: WebCore can be 600K smaller
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Macintosh
        OS/Version: Mac OS X 10.5
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: New Bugs
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: bolsinga at apple.com


With exported C++ and Obj-C++ files in WebCore and WebKit, you'll see the C++
namespaces strings repeated often in the binaries.

By renaming the namespaces (WebCore -> W, WTF -> F, JSC -> J) the total size of
the 3 binaries can be reduced by ~600K, in my testing.

This is extremely advantageous on memory constrained platforms. You can see
some Obj-C++ strings in WebCore (via strings - <WebCoreLibrary>| grep WebCore)
that are extremely long. These affect performance.

We have learned that all of these strings are touched during library use. The
smaller the library, and the shorter the strings the better on memory
constrained platforms.

This patch fixes this in a ham-handed way (#defines at in Platform.h) and
post-processes the .exp files, but it is a proof of concept.

Our performance team indicates this is a big win on our platform.


-- 
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