Find a file
Andrew Gerrand 69dc3a910f [release-branch.go1.3] cmd/gc: make liveness ~10x faster
««« CL 125720043 / b92e5df7d3ba
cmd/gc: make liveness ~10x faster

1) The arrayindexof lookup function is O(n). Replace with O(1) lookups.

2) The checkptxt function is O(n²) and is purely for debugging.
Only run when the debugging flags are turned on.

3) Iterating over sparse bitmaps can be done faster word by word.
Introduce and use bvnext for that.

Run times before and after, on my 2.5 GHz Core i5 MacBook Pro.

x.go       9.48  0.84  issue 8259

x100.go    0.01  0.01  issue 8354
x1000.go   0.10  0.10
x2000.go   0.62  0.19
x3000.go   1.33  0.34
x4000.go   2.29  0.49
x5000.go   3.89  0.67
x6000.go   5.00  0.90
x7000.go   6.70  1.13
x8000.go   9.44  1.38
x9000.go  11.23  1.87
x10000.go 13.78  2.09

Fixes #8259.
Fixes #8354.

LGTM=iant, r
R=golang-codereviews, iant, r
CC=golang-codereviews
https://golang.org/cl/125720043
»»»

TBR=rsc
CC=golang-codereviews
https://golang.org/cl/121600043
2014-08-13 06:34:38 +10:00
api api: add go1.3.txt 2014-06-02 11:45:00 +09:00
doc [release-branch.go1.3] doc: document new ParseMultipartForm behavior 2014-08-12 09:51:08 +10:00
include [release-branch.go1.3] include/u.h: define _DEFAULT_SOURCE for new glibc 2014-08-12 09:38:23 +10:00
lib lib/timezone: update to IANA 2014d 2014-06-01 00:15:23 +00:00
misc [release-branch.go1.3] cmd/cgo: fix recursive type mapping 2014-08-12 09:42:51 +10:00
src [release-branch.go1.3] cmd/gc: make liveness ~10x faster 2014-08-13 06:34:38 +10:00
test [release-branch.go1.3] cmd/6g, cmd/8g: fix, test byte-sized magic multiply 2014-08-12 10:05:20 +10:00
.hgignore lib9: enable on Plan 9 2014-02-13 20:06:41 +01:00
.hgtags go1.3 2014-06-19 10:20:01 +10:00
AUTHORS A+C: Pietro Gagliardi (individual CLA) 2014-05-21 16:01:41 -07:00
CONTRIBUTORS C: add another email of mine. 2014-05-31 01:55:11 -07:00
favicon.ico godoc: update favicon 2012-10-11 17:02:36 +11:00
LICENSE
PATENTS
README README: Fix installation instructions 2013-11-20 13:47:37 -08:00
robots.txt
VERSION go1.3 2014-06-19 10:20:01 +10:00

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-source.html
in your web browser.

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

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.