]>
Cypherpunks repositories - gostls13.git/log
Andrew Gerrand [Mon, 3 May 2010 02:09:44 +0000 (12:09 +1000)]
codelab/wiki: switch edit/view, as they were backwards
Fixes #757.
R=rsc
CC=golang-dev
https://golang.org/cl/
1064041
Robert Griesemer [Sat, 1 May 2010 22:11:27 +0000 (15:11 -0700)]
big: cleanup and removal of redundant functionality
R=rsc
CC=golang-dev
https://golang.org/cl/
1048041
Russ Cox [Sat, 1 May 2010 20:15:42 +0000 (13:15 -0700)]
gc: be pickier about slice, chan, array, and map sizes
Fixes #589.
R=ken2
CC=golang-dev
https://golang.org/cl/
1032044
Russ Cox [Sat, 1 May 2010 20:10:01 +0000 (13:10 -0700)]
gmp: fix bug in SetString
R=adg
CC=golang-dev
https://golang.org/cl/
1004045
Russ Cox [Sat, 1 May 2010 20:00:01 +0000 (13:00 -0700)]
vector: use correct capacity in call to make
R=gri, r, bflm
CC=golang-dev
https://golang.org/cl/
1032043
Robert Griesemer [Sat, 1 May 2010 04:25:48 +0000 (21:25 -0700)]
big: use fast shift routines
- fixed a couple of bugs in the process
(shift right was incorrect for negative numbers)
- added more tests and made some tests more robust
- changed pidigits back to using shifts to multiply
by 2 instead of add
This improves pidigit -s -n 10000 by approx. 5%:
user 0m6.496s (old)
user 0m6.156s (new)
R=rsc
CC=golang-dev
https://golang.org/cl/963044
Robert Griesemer [Fri, 30 Apr 2010 21:41:04 +0000 (14:41 -0700)]
big/arith: assembly routines for 386 long shifts (2nd round)
R=rsc
CC=golang-dev
https://golang.org/cl/986044
Russ Cox [Fri, 30 Apr 2010 21:04:34 +0000 (14:04 -0700)]
8g: bug272
Fixes #589.
R=ken2
CC=golang-dev
https://golang.org/cl/
1043042
Russ Cox [Fri, 30 Apr 2010 20:27:08 +0000 (13:27 -0700)]
gc: bug271
Fixes #662.
R=ken2
CC=golang-dev
https://golang.org/cl/978043
Russ Cox [Fri, 30 Apr 2010 20:04:16 +0000 (13:04 -0700)]
gc: bug270
Fixes #746.
R=ken2
CC=golang-dev
https://golang.org/cl/
1040042
Russ Cox [Fri, 30 Apr 2010 19:48:03 +0000 (12:48 -0700)]
8l: fix absolute path detection on Windows
Fixes #755.
R=ken2
CC=golang-dev
https://golang.org/cl/965047
Alex Brainman [Fri, 30 Apr 2010 19:46:46 +0000 (12:46 -0700)]
syscall: handle EOF on pipe - special case on Windows
R=rsc
CC=golang-dev
https://golang.org/cl/962046
Robert Griesemer [Fri, 30 Apr 2010 19:01:15 +0000 (12:01 -0700)]
fix build
R=rsc
CC=golang-dev
https://golang.org/cl/
1044041
Robert Griesemer [Fri, 30 Apr 2010 18:54:27 +0000 (11:54 -0700)]
big: improved computation of "karatsuba length" for faster multiplies
This results in an improvement of > 35% for the existing Mul benchmark
using the same karatsuba threshold, and an improvement of > 50% with
a slightly higher threshold (32 instead of 30):
big.BenchmarkMul 500
6731846 ns/op (old alg.)
big.BenchmarkMul 500
4351122 ns/op (new alg.)
big.BenchmarkMul 500
3133782 ns/op (new alg., new theshold)
Also:
- tweaked calibrate.go, use same benchmark as for Mul benchmark
R=rsc
CC=golang-dev
https://golang.org/cl/
1037041
Robert Griesemer [Fri, 30 Apr 2010 18:53:37 +0000 (11:53 -0700)]
big: assembly routines for 386 long shifts
R=rsc
CC=golang-dev
https://golang.org/cl/974043
Robert Griesemer [Fri, 30 Apr 2010 16:29:11 +0000 (09:29 -0700)]
big: implemented core shift routines in arith.go and
provide assembly versions (for x86-64 for now)
(Not yet used - waiting for previous CL to clear)
R=rsc
CC=golang-dev
https://golang.org/cl/
1040041
Nigel Tao [Fri, 30 Apr 2010 08:45:04 +0000 (18:45 +1000)]
Add EWOULDBLOCK to sycall_nacl.go.
R=rsc
CC=go-dev, golang-dev
https://golang.org/cl/
1006045
Alex Brainman [Fri, 30 Apr 2010 06:45:14 +0000 (23:45 -0700)]
rename GOOS=mingw to GOOS=windows
R=rsc, Joe Poirier
CC=golang-dev
https://golang.org/cl/
1015043
Russ Cox [Fri, 30 Apr 2010 06:34:06 +0000 (23:34 -0700)]
syscall: force O_LARGEFILE in Linux open system call
Fixes #717.
R=adg, PeterGo
CC=golang-dev
https://golang.org/cl/
1032041
Joe Poirier [Fri, 30 Apr 2010 06:08:22 +0000 (23:08 -0700)]
syscall: mingw Sleep
R=rsc, brainman
CC=golang-dev
https://golang.org/cl/961047
Russ Cox [Thu, 29 Apr 2010 23:07:14 +0000 (16:07 -0700)]
gc: never include ( ) on singleton func return type
Fixes #749.
R=ken2
CC=golang-dev
https://golang.org/cl/963043
Russ Cox [Thu, 29 Apr 2010 22:52:27 +0000 (15:52 -0700)]
gc: bug268
Fixes #745.
R=ken2
CC=golang-dev
https://golang.org/cl/
1008045
Christopher Wedgwood [Thu, 29 Apr 2010 18:02:10 +0000 (11:02 -0700)]
net: use short variable declaration
R=rsc
CC=golang-dev
https://golang.org/cl/
1019043
Christopher Wedgwood [Thu, 29 Apr 2010 18:01:21 +0000 (11:01 -0700)]
net: parser should handle EOF without newline properly.
Fixes #686.
R=rsc
CC=adg, golang-dev
https://golang.org/cl/979044
Robert Griesemer [Thu, 29 Apr 2010 17:57:27 +0000 (10:57 -0700)]
go spec: fix iota description
R=r, rsc
CC=golang-dev
https://golang.org/cl/946046
Andrey Mirtchovski [Thu, 29 Apr 2010 04:33:19 +0000 (14:33 +1000)]
codelab/index.html: a few typos.
R=adg
CC=golang-dev
https://golang.org/cl/993042
Andrey Mirtchovski [Thu, 29 Apr 2010 04:06:27 +0000 (14:06 +1000)]
codelab/index.html "os" needs to be imported because os.Error is used almost immediately
Also, calling fmt, ioutil and os "builtin" is probably confusing.
R=adg
CC=golang-dev
https://golang.org/cl/965045
Russ Cox [Thu, 29 Apr 2010 02:36:42 +0000 (19:36 -0700)]
darwin: bsdthread_create can fail; print good error
Fixes #549.
R=adg
CC=golang-dev
https://golang.org/cl/
1019042
Russ Cox [Thu, 29 Apr 2010 02:36:04 +0000 (19:36 -0700)]
net: do not require newline at end of resolv.conf
Fixes #686.
R=adg
CC=golang-dev
https://golang.org/cl/961046
Russ Cox [Thu, 29 Apr 2010 02:29:20 +0000 (19:29 -0700)]
xml: allow text segments to end at EOF
Fixes #674.
R=adg
CC=golang-dev
https://golang.org/cl/
1018042
Rob Pike [Wed, 28 Apr 2010 20:18:40 +0000 (13:18 -0700)]
spec: clarify "continue" with label. the text was obvious in intent but
inaccurate in meaning.
R=gri
CC=golang-dev
https://golang.org/cl/964045
Christopher Wedgwood [Wed, 28 Apr 2010 20:07:19 +0000 (13:07 -0700)]
fmt: %T print <nil> for nil
R=r
CC=golang-dev, rsc
https://golang.org/cl/
1014043
Ian Lance Taylor [Wed, 28 Apr 2010 18:08:07 +0000 (11:08 -0700)]
Remove destination of symlink test in case it got left behind
earlier.
R=rsc
CC=golang-dev
https://golang.org/cl/972045
Russ Cox [Wed, 28 Apr 2010 05:40:26 +0000 (22:40 -0700)]
5l, 6l, 8l, runtime: make -s binaries work
5l, 6l, 8l: change ELF header so that strip doesn't destroy binary
Fixes #261.
R=iant, r
CC=golang-dev
https://golang.org/cl/994044
Andrew Gerrand [Wed, 28 Apr 2010 04:06:25 +0000 (14:06 +1000)]
release.2010-04-27 tags
R=r
CC=golang-dev
https://golang.org/cl/972044
Andrew Gerrand [Wed, 28 Apr 2010 04:05:01 +0000 (14:05 +1000)]
release.2010-04-27
R=r, rsc
CC=golang-dev
https://golang.org/cl/963042
Andrew Gerrand [Wed, 28 Apr 2010 02:39:17 +0000 (12:39 +1000)]
wiki codelab: typo fix
noticed this as I was submitting the previous CL :(
R=r
CC=golang-dev
https://golang.org/cl/989045
Andrew Gerrand [Wed, 28 Apr 2010 02:36:39 +0000 (12:36 +1000)]
Wiki codelab, complete with tests.
R=r, rsc, gri
CC=golang-dev
https://golang.org/cl/887045
Robert Griesemer [Wed, 28 Apr 2010 02:16:08 +0000 (19:16 -0700)]
big: implemented Karatsuba multiplication
Plus:
- calibration "test" - include in tests with gotest -calibrate
- basic Mul benchmark
- extra multiplication tests
- various cleanups
This change improves multiplication speed of numbers >= 30 words
in length (current threshold; found empirically with calibrate):
The multiplication benchmark (multiplication of a variety of long numbers)
improves by ~35%, individual multiplies can be significantly faster.
gotest -benchmarks=Mul
big.BenchmarkMul 500
6829290 ns/op (w/ Karatsuba)
big.BenchmarkMul 100
10600760 ns/op
There's no impact on pidigits for -n=10000 or -n=20000
because the operands are are too small.
R=rsc
CC=golang-dev
https://golang.org/cl/
1004042
Russ Cox [Wed, 28 Apr 2010 02:04:22 +0000 (19:04 -0700)]
net: drop non-RHEL-4.6 ports from test
Fixes #610.
R=adg
CC=golang-dev
https://golang.org/cl/
1006044
Russ Cox [Wed, 28 Apr 2010 01:48:29 +0000 (18:48 -0700)]
iterable: expose iterFunc as iterable.Func
Fixes #483.
R=dsymonds, dsymonds1
CC=golang-dev
https://golang.org/cl/965044
Russ Cox [Wed, 28 Apr 2010 01:48:11 +0000 (18:48 -0700)]
net: fix bug in internetSocket introduced by error cleanup.
Fixes #750.
R=adg
CC=golang-dev
https://golang.org/cl/988043
Robert Griesemer [Wed, 28 Apr 2010 00:52:44 +0000 (17:52 -0700)]
go spec: fix wrong comment
Fixes #743.
R=r, rsc
CC=golang-dev
https://golang.org/cl/944044
Andrew Gerrand [Wed, 28 Apr 2010 00:50:44 +0000 (10:50 +1000)]
go_tutorial: removed outdated use of semicolons
R=r
CC=golang-dev
https://golang.org/cl/
1013042
Russ Cox [Wed, 28 Apr 2010 00:19:15 +0000 (17:19 -0700)]
gc: better windows detection
R=ken2
CC=golang-dev
https://golang.org/cl/944043
Andrew Gerrand [Wed, 28 Apr 2010 00:14:58 +0000 (10:14 +1000)]
template: remove reference to json-template
Rather than confuse people by linking to a spec we
don't fully support, let them just use the package docs.
R=r, rsc
CC=golang-dev
https://golang.org/cl/
1016041
Robert Griesemer [Tue, 27 Apr 2010 21:06:53 +0000 (14:06 -0700)]
pidigits: ~10% performance win by using adds instead of shifts
user time for pidigits -s -n=10000:
6.466s w/ adds
7.138s w/ shifts
R=rsc
CC=golang-dev
https://golang.org/cl/
1021041
Robert Griesemer [Tue, 27 Apr 2010 21:05:53 +0000 (14:05 -0700)]
fix build
R=r
CC=golang-dev
https://golang.org/cl/989044
Russ Cox [Tue, 27 Apr 2010 20:52:43 +0000 (13:52 -0700)]
gc: fix islocalname on windows
Fixes #732.
R=ken2
CC=golang-dev
https://golang.org/cl/956050
Russ Cox [Tue, 27 Apr 2010 20:51:58 +0000 (13:51 -0700)]
rpc/jsonrpc: support for jsonrpc wire encoding
R=r
CC=golang-dev
https://golang.org/cl/989042
Russ Cox [Tue, 27 Apr 2010 20:51:38 +0000 (13:51 -0700)]
json: delete obsolete code
R=r
CC=golang-dev
https://golang.org/cl/943047
Russ Cox [Tue, 27 Apr 2010 20:51:25 +0000 (13:51 -0700)]
rpc: abstract client and server encodings
R=r
CC=golang-dev, rog
https://golang.org/cl/811046
Robert Griesemer [Tue, 27 Apr 2010 20:27:48 +0000 (13:27 -0700)]
gofmt: fine-tune stripping of parentheses
(composite literals in control clauses only need
parentheses if the literals start with a type name)
R=rsc
CC=golang-dev
https://golang.org/cl/962045
Robert Griesemer [Tue, 27 Apr 2010 20:09:32 +0000 (13:09 -0700)]
6g bug: no need for parens around array index expression
where index is a composite literal
R=rsc
CC=golang-dev
https://golang.org/cl/961044
Robert Griesemer [Tue, 27 Apr 2010 18:57:17 +0000 (11:57 -0700)]
go/parser: don't require parens around composite literals inside a composite literal
within an if, for, or switch control clause
R=rsc
CC=golang-dev
https://golang.org/cl/943046
Robert Griesemer [Tue, 27 Apr 2010 17:59:33 +0000 (10:59 -0700)]
gofmt: don't strip mandatory ()'s around composite literals in control clauses
Fixes #748.
R=rsc
CC=golang-dev
https://golang.org/cl/946043
Russ Cox [Tue, 27 Apr 2010 17:46:37 +0000 (10:46 -0700)]
json: streaming
R=r, cw
CC=golang-dev
https://golang.org/cl/952041
Christopher Wedgwood [Tue, 27 Apr 2010 17:45:33 +0000 (10:45 -0700)]
godoc: use int64 for timestamps
This fixes a crash seen when viewing a directory list.
Fixes #747.
R=gri
CC=golang-dev, rsc
https://golang.org/cl/
1010042
Russ Cox [Tue, 27 Apr 2010 17:24:00 +0000 (10:24 -0700)]
json: preserve field name case by default
This matches the old JSON package behavior.
All lowercase names are not as standard as I believed,
and it seems less surprising to need to write
type T struct { Field string "field" }
to get lower case (behavior after this CL) than it does to need
to write
type T struct { Field string "Field" }
to preserve the case (behavior before this CL).
Also test and fix unmarshal into non-nil interface
value or pointer.
Fixes #744.
R=r
CC=golang-dev
https://golang.org/cl/
1013041
Russ Cox [Tue, 27 Apr 2010 17:17:17 +0000 (10:17 -0700)]
pipe: implementation #3; this time for sure!
Added goroutine; got simpler.
Fixes deadlock when doing Read+Close
or Write+Close on same end.
R=r, cw
CC=golang-dev
https://golang.org/cl/994043
Andrew Gerrand [Tue, 27 Apr 2010 09:27:32 +0000 (19:27 +1000)]
homepage: removed animation, use custom js instead of gdynamicfeeds
R=rsc
CC=golang-dev
https://golang.org/cl/949043
Micah Stetson [Tue, 27 Apr 2010 07:05:24 +0000 (00:05 -0700)]
time: remove incorrect time.ISO8601 and add time.RFC3339
Fixes #734.
R=rsc, r
CC=golang-dev
https://golang.org/cl/975042
Alex Brainman [Tue, 27 Apr 2010 06:47:53 +0000 (23:47 -0700)]
syscall: fix mingw build
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/988042
Alex Brainman [Tue, 27 Apr 2010 06:17:14 +0000 (23:17 -0700)]
os, syscall: more mingw
R=rsc, rsc1
CC=golang-dev
https://golang.org/cl/878046
Giles Lean [Tue, 27 Apr 2010 06:01:31 +0000 (23:01 -0700)]
os: create sys_bsd.go
R=rsc
CC=golang-dev
https://golang.org/cl/897042
Evan Shaw [Tue, 27 Apr 2010 05:50:47 +0000 (22:50 -0700)]
os: Fix build for MinGW
R=rsc
CC=golang-dev
https://golang.org/cl/
1014041
Alex Brainman [Tue, 27 Apr 2010 05:49:14 +0000 (22:49 -0700)]
rename cgo2c to goc2c in ignored list
R=rsc
CC=golang-dev
https://golang.org/cl/968043
Kyle Consalus [Tue, 27 Apr 2010 05:44:44 +0000 (22:44 -0700)]
Added fannkuch-parallel.go
R=r, rsc
CC=golang-dev
https://golang.org/cl/978042
Charles L. Dorian [Tue, 27 Apr 2010 05:44:39 +0000 (22:44 -0700)]
math: more special cases for signed zero
R=rsc
CC=golang-dev
https://golang.org/cl/937042
Russ Cox [Tue, 27 Apr 2010 05:35:27 +0000 (22:35 -0700)]
gc: more specific error for statements at top level
R=ken2, r, ken3
CC=golang-dev
https://golang.org/cl/
1006041
Russ Cox [Tue, 27 Apr 2010 05:35:12 +0000 (22:35 -0700)]
godoc: add codewalk support
R=adg, gri
CC=golang-dev, r
https://golang.org/cl/
1008042
Russ Cox [Tue, 27 Apr 2010 05:19:04 +0000 (22:19 -0700)]
crypto/tls: simpler implementation of record layer
Depends on CL 957045, 980043,
1004043 .
Fixes #715.
R=agl1, agl
CC=golang-dev
https://golang.org/cl/943043
Russ Cox [Tue, 27 Apr 2010 05:15:25 +0000 (22:15 -0700)]
net: introduce net.Error interface
Adds two more methods, Timeout and Temporary.
Implemented by os.Errno too. The intent is to make
the checks for os.EAGAIN a little less clunky.
It should also let us clean up a bug that Mike Solomon
pointed out: if a network server gets an "out of file descriptors"
error from Accept, the listener should not stop.
It will be able to check this because that error would
have Temporary() == true.
Also clean up some underscore names.
Fixes #442.
R=r
CC=golang-dev, msolo
https://golang.org/cl/957045
Andrew Gerrand [Tue, 27 Apr 2010 00:24:17 +0000 (10:24 +1000)]
doc/root.html: remove key from jsapi src
R=rsc, r
CC=golang-dev
https://golang.org/cl/
1010041
Russ Cox [Mon, 26 Apr 2010 17:36:05 +0000 (10:36 -0700)]
net: add Pipe
R=r
CC=golang-dev
https://golang.org/cl/
1004043
Russ Cox [Mon, 26 Apr 2010 17:02:01 +0000 (10:02 -0700)]
bytes: add Next method to Buffer, simplify Read.
R=r
CC=golang-dev
https://golang.org/cl/980043
Russ Cox [Mon, 26 Apr 2010 17:01:33 +0000 (10:01 -0700)]
xml: fix innerxml handling of & escapes
R=r
CC=golang-dev
https://golang.org/cl/
1009041
Russ Cox [Mon, 26 Apr 2010 17:01:13 +0000 (10:01 -0700)]
template: fix handling of pointer inside interface
R=r
CC=golang-dev
https://golang.org/cl/982043
Russ Cox [Mon, 26 Apr 2010 17:00:18 +0000 (10:00 -0700)]
regexp: allow escaping of any punctuation
More in line with other regexp packages
and egrep; accommodates overzealous escapers.
R=r
CC=golang-dev
https://golang.org/cl/
1008041
Russ Cox [Mon, 26 Apr 2010 08:09:19 +0000 (01:09 -0700)]
libmach: disassemble MOVLQZX correctly
R=ken2
CC=golang-dev
https://golang.org/cl/
1007041
Russ Cox [Fri, 23 Apr 2010 00:52:22 +0000 (17:52 -0700)]
runtime: closures, defer bug fix for Native Client
Enable package tests for Native Client build.
R=r
CC=golang-dev
https://golang.org/cl/957042
Rob Pike [Fri, 23 Apr 2010 00:04:28 +0000 (17:04 -0700)]
os/stat_freebsd.go: maybe fix build for freebsd
R=rsc
CC=golang-dev
https://golang.org/cl/970042
Andrew Gerrand [Fri, 23 Apr 2010 00:02:10 +0000 (10:02 +1000)]
go_faq: typo fix
R=rsc
CC=golang-dev
https://golang.org/cl/962043
Evan Shaw [Thu, 22 Apr 2010 23:57:29 +0000 (16:57 -0700)]
big: Create type nat
Changed most of the functions in nat.go to methods on nat.
R=gri
CC=golang-dev
https://golang.org/cl/976041
Rob Pike [Thu, 22 Apr 2010 21:01:33 +0000 (14:01 -0700)]
FileInfo: regularize the types of some fields.
Uid, Gid become int.
File size info becomes int64.
Times become int64.
R=rsc, cw
CC=golang-dev
https://golang.org/cl/968042
Evan Shaw [Thu, 22 Apr 2010 17:14:53 +0000 (10:14 -0700)]
spec: Fix run-time panic header id
Everything was linking to "Run_time_panics", but the id was "Run_time_errors".
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/961042
Evan Shaw [Thu, 22 Apr 2010 14:43:59 +0000 (00:43 +1000)]
vector: Don't always regenerate {int,string}vector.go
R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/917042
Evan Shaw [Thu, 22 Apr 2010 00:12:36 +0000 (17:12 -0700)]
big: Add some tests
R=rsc, gri
CC=golang-dev
https://golang.org/cl/967041
Russ Cox [Wed, 21 Apr 2010 23:40:53 +0000 (16:40 -0700)]
json: Marshal, Unmarshal using new scanner
R=r
CC=golang-dev
https://golang.org/cl/953041
Russ Cox [Wed, 21 Apr 2010 23:27:41 +0000 (16:27 -0700)]
runtime: switch state back to Grunning after recovery
Fixes #733.
R=r
CC=golang-dev
https://golang.org/cl/958041
Russ Cox [Wed, 21 Apr 2010 23:27:31 +0000 (16:27 -0700)]
xml: new "innerxml" tag to collect inner XML
R=r
CC=golang-dev
https://golang.org/cl/971041
Russ Cox [Wed, 21 Apr 2010 23:27:18 +0000 (16:27 -0700)]
utf16: add DecodeRune, EncodeRune
R=r
CC=golang-dev
https://golang.org/cl/970041
Andrew Gerrand [Wed, 21 Apr 2010 23:15:35 +0000 (09:15 +1000)]
faq: more up-to-date info about the Windows port
R=r
CC=golang-dev
https://golang.org/cl/961041
Rob Pike [Wed, 21 Apr 2010 21:54:19 +0000 (14:54 -0700)]
test/bench: reenable chameneosredux for gccgo.
run reverse-complement only once. (garbage is no longer an issue)
R=rsc
CC=golang-dev
https://golang.org/cl/968041
Russ Cox [Wed, 21 Apr 2010 05:51:48 +0000 (22:51 -0700)]
big: fix build - start with zero in scanN
R=gri, eds
CC=golang-dev
https://golang.org/cl/947042
Kyle Consalus [Wed, 21 Apr 2010 05:18:26 +0000 (22:18 -0700)]
strings: add ReadRune to Reader
R=rsc
CC=golang-dev
https://golang.org/cl/940041
Evan Shaw [Wed, 21 Apr 2010 04:41:58 +0000 (21:41 -0700)]
big: eliminate redundant array lookups
This gives about a 6% performance improvement to pidigits.
Thanks to Russ for the suggestion.
R=rsc, gri
CC=golang-dev
https://golang.org/cl/957041
Evan Shaw [Wed, 21 Apr 2010 04:24:07 +0000 (21:24 -0700)]
big: reduce the number of allocations
There was a bug in makeN that caused lots of unnecessary
allocations. Fixing this exposed a few bugs in other
functions which worked when makeN allocated a new slice, but
failed when it simply resized an existing slice. The result
is a pretty big performance improvement. When running
pidigits, here were the numbers I got on amd64:
Before this change:
pidigits 10000
gcc -O2 pidigits.c -lgmp 2.09u 0.02s 2.11r
gc pidigits 12.68u 0.04s 12.72r
gc_B pidigits 12.71u 0.03s 12.75r
After:
pidigits 10000
gcc -O2 pidigits.c -lgmp 2.09u 0.00s 2.10r
gc pidigits 6.82u 0.00s 6.85r
gc_B pidigits 6.55u 0.01s 6.59r
R=rsc, gri
CC=golang-dev
https://golang.org/cl/953042
Andrew Gerrand [Wed, 21 Apr 2010 04:00:56 +0000 (14:00 +1000)]
go_faq: add question: Why does Go perform badly on benchmark X?
R=r, cw
CC=golang-dev
https://golang.org/cl/895043
Russ Cox [Wed, 21 Apr 2010 03:39:55 +0000 (20:39 -0700)]
6l, 8l: include ELF header in PT_LOAD mapping for text segment
Due to page boundary rounding, the header would have
been loaded as part of the text segment already, but this
change placates the "paxctl" tool on so-called hardened
Linux distributions (as if normal distributions weren't already
hard enough to use).
R=r
CC=golang-dev
https://golang.org/cl/954041