|Go Improves Linker|
|Written by Kay Ewbank|
|Tuesday, 18 August 2020|
Go 1.15 has been released with improvements to the linker along with better handling of allocation for small objects at high core counts. Alongside these improvements, there are changes to the implementation of the toolchain, runtime, and libraries.
Go is an open source project developed by a team at Google and many contributors from the open source community over more than 8 years. The main intended use is as a systems programming language, and it has been used in high profile commercial successes such as Docker.
The improvements to the linker are designed to reduce linker resource usage for both time and memory, and to improve code robustness and maintainability. The development team say that for a representative set of large Go programs, linking is 20 percent faster and requires 30 percent less memory on average for ELF-based OSes on AMD64 architectures, with more modest improvements for other architecture and OS combinations.
The improvements have been achieved through a newly redesigned object file format, and a revamping of internal phases to increase concurrency. The changes have meant that object files in Go 1.15 are slightly larger than their 1.14 equivalents.
Another improvements is that because the linker now defaults to internal linking mode for Linux on ARM64, such configurations no longer require a C linker.
A new package, time/tzdata, has been included. This can be used to embed the timezone database into a program, which can then find timezone information even if the timezone database is not available on the local system.
Runtime improvements means that allocation of small objects now performs much better at high core counts, and has lower worst-case latency, and converting a small integer value into an interface value no longer causes allocation.
or email your comment to: email@example.com
|Last Updated ( Tuesday, 18 August 2020 )|