[Webkit-unassigned] [Bug 121545] [GTK] Reduce the binary size by compressing the text based web inspector resources

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Mar 21 02:40:35 PDT 2014


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





--- Comment #1 from Carlos Garcia Campos <cgarcia at igalia.com>  2014-03-21 02:40:56 PST ---
I've tried a patch for this (on top of patch attached to bug #130343), and these are the results:

Before:

-rw-r--r-- 1 cgarcia cgarcia 28M mar 21 10:31 InspectorGResourceBundle.c
-rwxr-xr-x 1 cgarcia cgarcia  59M mar 21 10:30 libwebkit2gtk-3.0.so.25.7.0
-rwxr-xr-x 1 cgarcia cgarcia  55M mar 21 10:30 libwebkitgtk-3.0.so.0.22.0
-rwxr-xr-x 1 cgarcia cgarcia  47M mar 21 10:30 WebKitPluginProcess

After:

-rw-r--r-- 1 cgarcia cgarcia 12M mar 21 10:32 InspectorGResourceBundle.c
-rwxr-xr-x 1 cgarcia cgarcia  56M mar 21 10:33 libwebkit2gtk-3.0.so.25.7.0
-rwxr-xr-x 1 cgarcia cgarcia  52M mar 21 10:33 libwebkitgtk-3.0.so.0.22.0
-rwxr-xr-x 1 cgarcia cgarcia  45M mar 21 10:33 WebKitPluginProcess

As you can see, one problem of compiling the resources in WEbCore is that all those end up in the plugin proces binary. My currently installed plugin process is 35MB, 10MB less than the compressed version including the inspector resources. So, maybe we should re-consider compiling them in WebCore, even if we have to duplicate some cmake code. 

I haven't noticed any performance regression when loading the compressed resources. I'll submit the patch as soon as patch for bug #130343 lands.

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