Bug 24345

Summary: wxWebkit should make use of gcc(4 and greater) hidden visibility feature
Product: WebKit Reporter: Malcolm MacLeod <mmacleod>
Component: WebKit wxAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Enhancement    
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: Linux   
Attachments:
Description Flags
Patch to enable hidden visibility for gcc > 4 kevino: review+

Description Malcolm MacLeod 2009-03-04 01:31:38 PST
wxWebKit does not currently make use of the gcc hidden visibility features that are available since gcc 4.
Changing it to make use of these features is trivial as everything is already in place to do so, so the gains that can be had are almost for free.

I have done so and it results in a +-35% binary size decrease (From 30Mib down to 19mib on a 64 bit system). Obviously this also speeds up linking time and other similar benefits.

I will attach the patch to enable this below.
Comment 1 Malcolm MacLeod 2009-03-04 01:32:30 PST
Created attachment 28259 [details]
Patch to enable hidden visibility for gcc > 4
Comment 2 Malcolm MacLeod 2009-03-04 01:34:50 PST
Forgot to mention that this has been tested successfully on both an x86 system with GCC 4.1.2 as well as an x86_64 system with GCC 4.3.3
Comment 3 Kevin Ollivier 2009-05-05 16:12:03 PDT
Landed in r43260, thanks!