Application footprint reduce study.

The following text based on the study this week,  we are focused in developing a new CoreTech module.  The  size of the new module is 10M , but the the old one is 1M, because the development based on boost and we used a lot of template. Since one of the key point for the product team is performance tunning, so they are really concerned about  size of the new SDK.

One of the core value in the culture of trendmicro is customer insight,  the product team is our first customer, so we have no choice but to reduce the size. At last we reduce 50% successfully, if we use UPX to pack it , it can be 2.1M. 

 1.  Use dynamic link instead of static link can greatly reduce the executable size.

2.  Link options “/OPT:NOICF /OPT:NOREF /OPT:NOWIN98 /INCREMENTAL:NO” are useful to reduce the executable file size.

After to adopt previous two steps, the size of IAU SDK drops to 10M, but it is not light-weighted enough for TIS.

3.  We find some plugins are thin but the others are fat. And we found two boost XML option API: read_xml and write_xml can lead considerable executable size increment.

So if we wrap both APIs a dll we can reduce the SDK size to 6.2M (include the 3rd party incremental libraries, 1M).

Add i aslo suggest anyone who interested in the topic should read a useful ariticle named "Techniques for reducing Executable size" , you can find it by google.


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值