Application footprint reduce study.

来源:互联网 发布:如何用ppt制作销售网络 编辑:程序博客网 时间:2024/03/29 18:11

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.


原创粉丝点击