[Translation] code optimization: focus on things other than memory usage and Running Speed

Source: Internet
Author: User

This digest is translated from things to optimize besides speed and memory. Due to my limited English proficiency, I have translated only some important parts and made many mistakes. Please forgive me.

Optimization is as important as optimizing memory and speed:

1.ProgramPower Consumption, heat production and fan noise (I note: reduce unnecessary operations, do not use an infinite loop to wait ).

2. Write to the disk. Check whether an unchanged file is frequently rewritten to the hard disk.

3. The size and complexity of software documents.

4. Read tutorial time and knowledge requirements.

5. Network Traffic

6. # The size of the include file, more accurately speaking, is the optimization of the interface (I note: ReduceCodeAbuse of include is also very important. Too many useless include will make the Code a mess, and will re-compile many unaffected modules after modifying the header file, for details, see "valid C ++ ").

7. The number of clicks required when a user completes a function is an optimization on UX.

8. software start time.

9. The time required for Rebuild of the project, and the time required to confirm bug-free after a complex logic is modified.

10. The number of special functions or special code that need to be recorded in the document (I note: Try to make the software functions simple and clear, and the code is concise and easy to read ).

 

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.