1. Dave Cheney
  2. go-old

Commits

Show all
Author Commit Message Date Builds
Russ Cox
6l, 8l: make string buffer big enough for 8 chars (and then some) Fixes issue 221. R=ken2 http://codereview.appspot.com/165086
Russ Cox
test/bench: faster fasta (mostly due to bufio fix) R=r http://codereview.appspot.com/165083 Committer: Russ Cox <rsc@golang.org>
Russ Cox
runtime: don't touch pages of memory unnecessarily. cuts working size for hello world from 6 MB to 1.2 MB. still some work to be done, but diminishing returns. R=r http://codereview.appspot.com/165080
Russ Cox
runtime: introduce unsafe.New and unsafe.NewArray to provide functionality previously hacked in to reflect and gob. R=r http://codereview.appspot.com/165076
Robert Griesemer
use a bootstrap array to avoid allocation for short vectors R=r http://codereview.appspot.com/165078
cwedgwood
Remove copyBytes completely in favor of copy. R=r, rsc http://codereview.appspot.com/165068 Committer: Rob Pike <r@golang.org>
Rob Pike
pick off special one-byte case in copy. worth 2x in benchmarks (38ns->16ns). the one-item case could be generalized easily with no cost. worth considering. R=rsc CC=golang-dev, cw http://codereview.appspot.com/167044
rogpeppe
the AST walker currently provides no way to find out how the nodes in the tree are nested with respect to one another. a simple change to the Visitor interface makes it possible to do this (for example to maintain a current node-depth, or a knowledge of the name of the current function). Visit(nil) is called at the end of a node's children; this make possible the channel-based interface below, amongst other possibilities. It is still just as simple to get the original behaviour - just return the same Visitor from Visit. Here are a couple of possible Visitor types. // closure-based type FVisitor func(n interface{}) FVisitor func (f FVisitor) Visit(n interface{}) Visitor { retur…
rogpeppe
changes necessary to get the new chameneosredux onto shootout.alioth.debian.org . it's now there: http://shootout.alioth.debian.org/u32q/benchmark.php?test=chameneosredux&lang=all&box=1! R=r, rsc CC=golang-dev http://codereview.appspot.com/167043 Committer: Russ Cox <rsc@golang.org>
Rob Pike
save a few ns by inlining (which mostly simplifies things anyway). a couple of cleanups. don't keep big buffers in the free list. R=rsc CC=golang-dev http://codereview.appspot.com/166078
Rob Pike
unexport Fmt. it's not needed outside this package any more cleans up godoc's output for package fmt substantially. R=rsc CC=golang-dev http://codereview.appspot.com/165070
Rob Pike
Make printing faster by avoiding mallocs and some other advances. Roughly 33% faster for simple cases, probably more for complex ones. Before: mallocs per Sprintf(""): 4 mallocs per Sprintf("xxx"): 6 mallocs per Sprintf("%x"): 10 mallocs per Sprintf("%x %x"): 12 Now: mallocs per Sprintf(""): 2 mallocs per Sprintf("xxx"): 3 mallocs per Sprintf("%x"): 5 mallocs per Sprintf("%x %x"): 7 Speed improves because of avoiding mallocs and also by sharing a bytes.Buffer between print.go and format.go rather than copying the data back af…
Russ Cox
runtime: disable pointer scan optimization * broken by reflect, gob TBR=r http://codereview.appspot.com/166077
Ian Lance Taylor
Fix syscall.Statfs and syscall.Fstatfs for 386 GNU/Linux. For 386 we use the [f]statfs64 system call, which takes three parameters: the filename, the size of the statfs64 structure, and a pointer to the structure itself. R=rsc http://codereview.appspot.com/166073
Russ Cox
test/bench: use range in reverse-complement 1.9s gcc reverse-complement.c reverse-complement.go 4.5s / 3.5s original, with/without bounds checks 3.5s / 3.3s bounds check reduction 3.3s / 2.8s smarter garbage collector 2.6s / 2.3s assembler bytes.IndexByte 2.5s / 2.1s even smarter garbage collector 2.3s / 2.1s fix optimizer unnecessary spill bug 2.0s / 1.9s change loop to range (this CL) R=r http://codereview.appspot.com/166072
Russ Cox
gc/runtime: pass type structure to makeslice. * inform garbage collector about memory with no pointers in it 1.9s gcc reverse-complement.c reverse-complement.go 4.5s / 3.5s original, with/without bounds checks 3.5s / 3.3s bounds check reduction 3.3s / 2.8s smarter garbage collector 2.6s / 2.3s assembler bytes.IndexByte 2.5s / 2.1s even smarter garbage collector (this CL) R=r http://codereview.appspot.com/165064
Russ Cox
gc: walk pointer in range on slice/array R=ken2 http://codereview.appspot.com/166071
Russ Cox
6g/8g optimizer fix: throw functions now in runtime R=ken2 http://codereview.appspot.com/166070
Russ Cox
test/bench: dead code in reverse-complement R=r http://codereview.appspot.com/165065
Russ Cox
gotest: stop if the // gotest commands fail R=r http://codereview.appspot.com/166067
Russ Cox
net: more fiddling with the udp test. i don't know why the timeout needs to be so big. R=r http://codereview.appspot.com/165063
Russ Cox
libmach: fix disassembly of MOVLQSX R=r http://codereview.appspot.com/166068
Russ Cox
gotest: ignore *_test.pb.go R=r http://codereview.appspot.com/166064
Ian Lance Taylor
Add syscall.Rename for NaCl. Fixes NaCl build. R=rsc http://codereview.appspot.com/165062
Adam Langley
runtime: shift the index for the sort by one. Makes the code look cleaner, even if it's a little harder to figure out from the sort invariants. R=rsc CC=golang-dev http://codereview.appspot.com/165061
Ian Lance Taylor
Add os.Rename. R=rsc http://codereview.appspot.com/166058
Adam Langley
Remove global chanlock. On a microbenchmark that ping-pongs on lots of channels, this makes the multithreaded case about 20% faster and the uniprocessor case about 1% slower. (Due to cache effects, I expect.) R=rsc, agl CC=golang-dev http://codereview.appspot.com/166043
Russ Cox
bytes: asm for bytes.IndexByte PERFORMANCE DIFFERENCE SUMMARY amd64 386 2.2 GHz AMD Opteron 8214 HE (Linux) 3.0x faster 8.2x faster 3.60 GHz Intel Xeon (Linux) 2.2x faster 6.2x faster 2.53 GHz Intel Core2 Duo E7200 (Linux) 1.5x faster 4.4x faster 2.66 Ghz Intel Xeon 5150 (Mac Pro, OS X) 1.5x SLOWER 3.0x fas…
Russ Cox
spec: document that built-ins cannot be used as func values R=gri CC=golang-dev http://codereview.appspot.com/164088
Russ Cox
make Native Client support build again, add README explaining how to try the web demos. Fixes issue 339. R=r CC=barry.d.silverman, bss, vadim http://codereview.appspot.com/165057
  1. Prev
  2. Next