They automatically translated C code to Go code. The objective was to produce correct Go code, speed was not an immediate concern - the auto-translated code mostly is very bad Go code, speed wise. Optimizing the Go code base of the compiler is the next step, planned to happen in subsequent releases.
>the auto-translated code mostly is very bad Go code, speed wise.
Is it? It might not be particularly optimized, but why would that ("very bad speed wise") be the case?
Generally, compilers aren't very good at compiling code that isn't idiomatic for the language. This is by design, since compiler writers try to make idiomatic, common code fast first and foremost.
Re:Go 1.5 Release Notes
by chimeracoder on Friday July 31, 2015 @02:15PM
(#9983349)
> I wonder if there are any estimates on how close to the original performance they think they can get. Do they expect to reach parity by, say, 1.6 or will it always be slower?
I imagine that's just a side-effect of rewriting the entire compiler; I'd expect the next versions to improve on the speed.
Though in the meantime, if compilation time is an issue, you can always try gccgo. On my larger projects, it's slightly faster than gc 1.5. YMMV, obviously.
The new compiler is now garbage collected, and is generating lots of garbage, when the old compiler ran without any garbage collection. There is an interesting thread from the mailing list about this [0]
[0] https://groups.google.com/d/topic/golang-dev/6obxRcm-rqc/dis...
Re:Go 1.5 Release Notes
by gillianseed on Friday July 31, 2015 @04:00PM
(#9984033)
What's the performance in gccgo nowadays, back when I tried it certain things was slightly faster but a lot was slower compared to the official compiler.
I read that it mainly had to do with lack of escape analysis, has this changed in recent gcco releases ?
For my tiny hobby projects, compile times aren't an issue at all so I'm asking purely out of curiosity.