Picture compression :

1. The background image size is generally 100-300KB, Use a solid color image to zoom to 1-3KB, If you do it right, you can reduce 1M many ;
2. .ico It's usually 100-200KB,16x16 Until 256x256, You can subtract some of these sizes to reduce 50KB about , When used .ico Of exe Can be reduced ;
3. .ico Compile into exe, When the packaging .ico Don't need to resource Directory , You don't need to be involved in packaging ;
3. Again 7zsd_All_admin.sfx Medium .ico It can also be reduced .

Code section :

1. firebreath Use webAssit Instead of ;
2. Static libraries use dynamic libraries instead of , The more classes exported from dynamic libraries, the larger the size , This is not very effective , Only when there are many special modules in general 10 More than one call to the dll, The effect will appear ;
3. release Next .pdb Cancel build , Just keep the key programs , such as plugin and bho;
4. Function merging , Simple functions, such as self unloading and integration into the unloading program , Reduce the number of modules , I've tested one that only contains configuration files exe, But the size has increased 120KB 了 ; Of course, function merging is against the loose coupling of software design , Ah , In order to reduce the size by any means, bear it , Then the code hierarchy reduces coupling ;
5. Common libraries that are often used cpp Function to ensure common , It is called only a few times and considered to be thrown into other classes ;

6. Consider Configuration-->C/C++-->Optimization-->Optimization Optimization of compilation options ,Mininize Size(/O1)   I didn't test this

VC++ client More articles on reducing the size of the package

  1. VirtualBox It's just been installed Debian9 System , Also cannot set shared folder . The solution is to install VirtualBox Client enhancement package .

    VirtualBox It's just been installed Debian9 System , Also cannot set shared folder . The solution is to install VirtualBox Client enhancement package . 1. If you directly install the client enhancement package, you will get the following prompt :root@debian:/op ...

  2. VirtualBox It's just been installed CentOS6.9 and 7 System , Unable to adjust screen resolution , Also cannot set shared folder . The solution is to install VirtualBox Client enhancement package .

    VirtualBox It's just been installed CentOS6.9 and 7 System , Unable to adjust screen resolution , Also cannot set shared folder . The solution is to install VirtualBox Client enhancement package . 1. If you directly install the client enhancement package, you will get the following prompt : ...

  3. FIddler+Proxifer Realization PC Client capture

    Proxifier Set up 1. install Proxifier Download address :http://www.hanzify.org/software/13717.html 2. Configure the proxy server A. Turn on HTTP agreement Proxi ...

  4. Use fiddler And Android emulator to capture Android client packets

    Android simulator should be able to bridge the network , Lightning simulator is used in this paper . Software installation is very simple , No more details here . fiddler Settings in First , open fiddler, Click on Tools Under the tab Options. Switch to https ...

  5. mysql mariadb Of VC Problems encountered by the client

    In the use of VS2017 Write database client Please refer to the following for specific settings https://dev.mysql.com/doc/connector-cpp/en/connector-cpp-apps-windows- ...

  6. Reprint 50 There are two ways to optimize SQL Server Database query

    Original address http://www.cnblogs.com/zhycyq/articles/2636748.html 50 There are two ways to optimize SQL Server Database query There are many reasons for slow query speed , The common ones are as follows : 1 ...

  7. SQLServer Optimize data processing ( Two )

    Stored procedure writing experience and optimization measures One . Suitable for readers : Database developers , There is a lot of data in the database , It's about being right SP( stored procedure ) Optimized project developers , People who are interested in databases . Two . Introduce : In the process of database development , We often meet with ...

  8. Use Angular CLI and Webpack Analysis package size

    Use Angular CLI and Webpack Analysis package size about Web app Come on , High performance is always the highest priority , about Angular No exception . But with the increasing complexity of applications , How can we know what to play ...

  9. [ turn ] Socket Heartbeat packet abnormal detection C Language implementation , Server and client code cases

    Reprinted from :zxh2075 The column stay Socket In the heartbeat mechanism , Heartbeat packets can be sent by the server to the client , It can also be sent by the client to the server , But by comparison , The former may be more expensive . In this paper, the client sends heartbeat packets to the server , The server doesn't have to return ...

Random recommendation

  1. Android And drawable state Each attribute is explained in detail

    android:drawable  Let's play one. drawable resources android:state_pressed Whether to press , Like a button touch or click .android:state_focused Whether to get the focus , such as ...

  2. this call and apply

    this A pointer always points to an object , It can be roughly divided into the following four types : 1, Method call as object (this Point to the object ) 2, Called as a normal function When a function is called as a property of an object , It's a normal function , At this time this Always point to the whole situation ...

  3. Use Qt Developing software for graphical interfaces ( Zhongyuan in the dust )

    3DSlicer, a free open source software for visualization and medical image computing AcetoneISO: The image file is hung ...

  4. ZOJ 2967 Colorful Rainbows 【Stack】

    The solution to this problem is similar to convex hull , Let's start with the slope of all the lines a Order from small to large If the slope is the same, take b The larger , Throw away b Small ( It can be ignored in traversal ). So all the lines have different slopes . Prepare a stack ( Manual simulation ), The stack holds what you saw last time “ At the top ...

  5. Zhu ye is talking to you Spring series S1E10: Powerful and complex Spring Security( contain OAuth2 Triangle + Three complete example of model )

    Spring Security Multi function , Components are highly abstract , There are many ways of configuration , Led to Spring Security Powerful and complex features .Spring Security The cost of learning is almost Spring The tallest in the family ,Spr ...

  6. JAVA Self study notes 17

    JAVA Self study notes 17 1.Map Interface 1) summary Objects that map keys to values , A map cannot contain duplicate keys , Each key can be mapped to at most one value . Elements that can store key value pairs 2) And Collection Different interfaces : ①Map It's a double column ...

  7. Android attribute allowBackup Safety risk analysis

    1.allowBackup Security risk description Android API Level 8 And above Android The system provides backup and recovery functions for application data , The switch for this function depends on the application AndroidManifes ...

  8. Reprint : official Caffe-windows Configuration and sample run

    Reprint from :http://blog.csdn.net/guoyk1990/article/details/52909864 This article mainly introduces the official caffe-windows And how to train mnist data ...

  9. Emmet On 2

    About Emmet Emmet The predecessor of plug-ins is Zen coding, A tool that can greatly improve the efficiency of front-end development , Others say it's similar to jade( High performance template engine , It's very popular Haml influence , It is to use JavaScript Realized ...

  10. Mysql5.7.10 New users

    INSERT INTO mysql.user(HOST,USER,authentication_string,ssl_cipher,x509_issuer,x509_subject,select_pr ...