Google makes Go faster
- 14 May, 2013 20:44
Google has updated its Go programming language, making it faster and more suitable for multicore processors.
"The most significant improvements are performance-related," wrote Google engineer Andrew Gerrand, in a post announcing the new version. "It is likely that your Go code will run noticeably faster when built with Go 1.1."
For this release, the Go development team optimized a number of major elements of Go, including the compiler and linker, garbage collector, scheduler, and parts of the standard library.
The company released the first full version of Go last year, and released three minor updates since then. In addition to using in-house staff to refine the language, Google accepted 2,600 code modifications from 161 contributors for this version.
In addition to the performance improvements, Go 1.1 has a number of other significant features. Programs in the language can run more smoothly across multiple processor cores, thanks to a new race detector. On the programming side, return requirements have been modified, which will reinforce more succinct coding habits.
Go 1.1 is fully backward compatible; it can recognize and run all programs built using Go 1.