Re: [webkit-dev] Accidental binary bloating via C/C++ class/struct + Objective-C

2020-01-13 Thread Yusuke Suzuki
> On Jan 13, 2020, at 19:28, Darin Adler wrote: > >> On Jan 13, 2020, at 5:52 PM, Yusuke Suzuki > > wrote: >> >> We can purge type-encoding-string if we use Objective-C NS_DIRECT feature >> (which makes Objective-C function as C function calling convention, removing

Re: [webkit-dev] Accidental binary bloating via C/C++ class/struct + Objective-C

2020-01-13 Thread Darin Adler
> On Jan 13, 2020, at 5:52 PM, Yusuke Suzuki wrote: > > We can purge type-encoding-string if we use Objective-C NS_DIRECT feature > (which makes Objective-C function as C function calling convention, removing > metadata). > However, this does not work universally: with NS_DIRECT, Objective-C

Re: [webkit-dev] Accidental binary bloating via C/C++ class/struct + Objective-C

2020-01-13 Thread Joseph Pecoraro
This is a great idea! - Joe > On Jan 13, 2020, at 5:52 PM, Yusuke Suzuki wrote: > > Hello WebKittens, > > I recently striped 830KB binary size in WebKit just by using a work-around. > This email describes what happened so far, to prevent from happening again. > > ## Problem > > When C/C++

Re: [webkit-dev] Accidental binary bloating via C/C++ class/struct + Objective-C

2020-01-13 Thread Filip Pizlo
Wow, that sounds like an awesome find! -Filip > On Jan 13, 2020, at 5:53 PM, Yusuke Suzuki wrote: > > ´╗┐Hello WebKittens, > > I recently striped 830KB binary size in WebKit just by using a work-around. > This email describes what happened so far, to prevent from happening again. > > ##

[webkit-dev] Accidental binary bloating via C/C++ class/struct + Objective-C

2020-01-13 Thread Yusuke Suzuki
Hello WebKittens, I recently striped 830KB binary size in WebKit just by using a work-around. This email describes what happened so far, to prevent from happening again. ## Problem When C/C++ struct/class is included in field types and method types in Objective-C, Objective-C compiler puts