Profiling DLL/LIB Bloat

前端 未结 8 2085
故里飘歌
故里飘歌 2020-12-29 00:46

I\'ve inherited a fairly large C++ project in VS2005 which compiles to a DLL of about 5MB. I\'d like to cut down the size of the library so it loads faster over the network

8条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-29 01:00

    i would recommend one of the following:

    coverage - you can run a coverage tool in the hope of detecting some dead code

    caching - cache the dll on the client side on the initial activatio

    splitting - split the dll into several smaller dlls, start the application with the bootstrap dll and download the other dlls after the application starts

    compilation and linking - use smaller run time library, compile with size optimization, etc. see this link for more suggestions.

    compression - if you have data or large resources within the dll, you can compress them and decompress only after the download or at runtime.

提交回复
热议问题