Go1.7 improves compilation speed and generates faster code

Source: Internet
Author: User
This is a created article in which the information may have evolved or changed.

GO1.7 's development cycle is nearing its next milestone, and Go's submitter Dave Cheney reports on the efforts of the team members on the language tool chain in the upcoming release of the child.

Based on current development status, Go1.7 will easily become the best go release, Cheney said. The efforts to enhance the tool chain focus on the following two areas:

  • Compile and link the time;
  • Code generation.

When it comes to compile time, the go compiler has been slow since C went to the impact of go. This issue has been discussed many times and the most recent work accomplished is to reduce compiler memory usage to improve link time. This improvement reduces the total compile time of 20-30% by approximately Go1.5.3 compared to the previous one, as shown in:

Code generation, as described above, is another major concern of Go1.7. The new backend is replaced by SSAS, as is the case with LLVM and other compilers, to enable many optimizations for code generation. These optimizations include better elimination of useless code, register allocation, stack frame allocation, and so on. As Cheney says, Go1.7 's new SSA backend will increase the code speed by 20% in this initial phase. Extra, compared to Go1.6 it generates smaller binaries, and in many cases it is similar to the Go1.4 generation.

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.