1
0
mirror of https://github.com/golang/go synced 2024-11-26 21:51:44 -07:00
The Go programming language
Go to file
Rémy Oudompheng 386ad0ab90 cmd/gc: enable inlining in generated method wrappers.
Method calls on interfaces with large stored values
will call the pointer receiver method which may be
a wrapper over a method with value receiver.

This is particularly inefficient for very small bodies.
Inlining the wrapped method body saves a potentially expensive
function call.

benchmark                old ns/op    new ns/op    delta
BenchmarkSortString1K       802295       641387  -20.06%
BenchmarkSortInt1K          359914       238234  -33.81%
BenchmarkSortInt64K       35764226     22803078  -36.24%

Fixes #4707.

R=golang-dev, daniel.morsing, rsc
CC=golang-dev
https://golang.org/cl/7214044
2013-03-11 21:24:51 +01:00
api api: update next.txt 2013-03-11 11:04:34 -07:00
doc spec: typed indices must be of integer type 2013-03-11 09:20:52 -07:00
include lib9: add mktempdir, removeall, runprog 2013-03-06 15:48:28 -05:00
lib lib/time: update link in README; draft now an RFC 2013-03-11 12:34:55 -04:00
misc misc/dashboard: add go.blog sub-repo to dashboard 2013-03-11 11:06:21 +11:00
src cmd/gc: enable inlining in generated method wrappers. 2013-03-11 21:24:51 +01:00
test cmd/8g: fix code generation of int64(0) == int64(0). 2013-03-07 21:47:45 +01:00
.hgignore
.hgtags
AUTHORS A+C: Rodrigo Moraes de Oliveira (individual CLA) 2013-03-11 14:53:39 -04:00
CONTRIBUTORS A+C: Rodrigo Moraes de Oliveira (individual CLA) 2013-03-11 14:53:39 -04:00
favicon.ico
LICENSE
PATENTS
README
robots.txt

This is the source code repository for the Go programming language.  

For documentation about how to install and use Go,
visit http://golang.org/ or load doc/install.html in your web browser.

After installing Go, you can view a nicely formatted
doc/install.html by running godoc --http=:6060
and then visiting http://localhost:6060/doc/install.html.

Unless otherwise noted, the Go source files are distributed
under the BSD-style license found in the LICENSE file.

--

Binary Distribution Notes

If you have just untarred a binary Go distribution, you need to set
the environment variable $GOROOT to the full path of the go
directory (the one containing this README).  You can omit the
variable if you unpack it into /usr/local/go, or if you rebuild
from sources by running all.bash (see doc/install.html).
You should also add the Go binary directory $GOROOT/bin
to your shell's path.

For example, if you extracted the tar file into $HOME/go, you might
put the following in your .profile:

    export GOROOT=$HOME/go
    export PATH=$PATH:$GOROOT/bin

See doc/install.html for more details.