1
0
mirror of https://github.com/golang/go synced 2024-10-04 01:21:21 -06:00
go/src
Robert Griesemer 18ae633472 token/position: implemented Pos
A pos value represents a file-set specific, accurate
source position value. It is 8x smaller in size than
the corresponding Position value (4 bytes vs 32 bytes).

Using Pos values instead of Position values in AST
saves approx. 25MBytes of memory when running godoc
on the current repository.

This CL introduces the Pos, File, and FileSet data
types; it does not affect existing code. Another
(pending CL) will make the change to all dependent
source files.

Missing: tests

R=r
CC=golang-dev, rsc
https://golang.org/cl/2936041
2010-11-12 16:39:33 -08:00
..
cmd gc: fix arm build 2010-11-12 12:46:46 -08:00
lib9 libutf: update to Unicode 5.2.0 to match pkg/unicode 2010-11-01 16:14:48 -04:00
libbio build: test for _WIN32, not _MINGW32 2010-09-08 22:20:35 -04:00
libcgo libcgo: fix comment 2010-09-30 14:58:29 -04:00
libmach libmach: detail for darwin errors 2010-11-05 23:03:53 -04:00
pkg token/position: implemented Pos 2010-11-12 16:39:33 -08:00
all-nacl.bash nacl: another attempt at fixing build 2010-05-03 11:12:54 -07:00
all.bash build: $GOBIN defaults to $GOROOT/bin 2010-08-24 20:00:33 -04:00
clean.bash build: remove unnecessary references to GOBIN and GOROOT 2010-08-30 15:40:56 -04:00
env.bash env.bash: more quoting in case of spaces 2010-11-05 23:04:08 -04:00
make.bash build: only print "You need to add foo to PATH" when needed 2010-10-25 16:38:48 +11:00
Make.ccmd build: fiddle with make variables 2010-11-01 16:14:58 -04:00
Make.clib build: use full path when compiling libraries 2010-09-24 11:55:16 -04:00
Make.cmd Make.cmd: remove $(OFILES) 2010-10-11 22:39:37 -04:00
Make.common build: remove unnecessary references to GOBIN and GOROOT 2010-08-30 15:40:56 -04:00
Make.inc build: fiddle with make variables 2010-11-01 16:14:58 -04:00
Make.pkg debug/pe, cgo: add windows support 2010-11-01 17:52:26 -04:00
quietgcc.bash build: add GOHOSTOS and GOHOSTARCH environment variables. 2010-10-08 18:52:28 +11:00
run.bash build: add gobuilder and goplay to run.bash 2010-10-21 10:46:10 +11:00
sudo.bash build: no required environment variables 2010-08-18 10:08:49 -04:00
version.bash version.bash: cope with ancient Mercurial 2010-03-16 18:45:06 -07:00