Compile too slow problem picture resources too many video resources cause too many slow compilations

Source: Internet
Author: User

My blog address is welcome to read and correct :

http://www.cnblogs.com/yyxios/

https://github.com/iossinger

The company project is not small, thousands of lines of code, but every time a small change, to recompile, light 5, 6 minutes weight more than 10 minutes, because the inside needs to display the three-dimensional effect, so the project put a lot of picture resources and video resources, resulting in each compilation speed is very slow;

Workaround:

In the debugging phase of the link to the local computer resources, such as put into a folder on the desktop, so do not need to compile, but also can see the effect, only when the use of the time will be loaded from the local, the disadvantage is that the 3D effect slightly lag, but the effect is very obvious, then the speed significantly accelerated;

In the release phase: directly put the resources in the line, and let debugging code failure;

The following are the specific practices:

#ifdef DEBUG

Read resources Locally, note the path

#else

Follow the default procedure to

#endif

Other possible causes:

Do not refer to. h files too much in. h files, but are referenced in. m

Compile too slow problem picture resources too many video resources cause too many slow compilations

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.