summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2010-04-20strings: add ReadRune to ReaderKyle Consalus2-2/+48
R=rsc CC=golang-dev http://codereview.appspot.com/940041 Committer: Russ Cox <rsc@golang.org>
2010-04-20big: eliminate redundant array lookupsEvan Shaw1-5/+11
This gives about a 6% performance improvement to pidigits. Thanks to Russ for the suggestion. R=rsc, gri CC=golang-dev http://codereview.appspot.com/957041 Committer: Russ Cox <rsc@golang.org>
2010-04-20big: reduce the number of allocationsEvan Shaw1-4/+10
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 http://codereview.appspot.com/953042 Committer: Russ Cox <rsc@golang.org>
2010-04-21go_faq: add question: Why does Go perform badly on benchmark X?Andrew Gerrand1-1/+35
R=r, cw CC=golang-dev http://codereview.appspot.com/895043 Committer: Andrew Gerrand <adg@golang.org>
2010-04-206l, 8l: include ELF header in PT_LOAD mapping for text segmentRuss Cox2-10/+10
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 http://codereview.appspot.com/954041
2010-04-20big: Add Lsh and Value; convert pidigits to use bigEvan Shaw5-78/+239
This yields a pretty significant performance boost to pidigits and there are still some improvements to be made. Here are my numbers: amd64 w/ bignum: pidigits 10000 gcc -O2 pidigits.c -lgmp 2.10u 0.00s 2.10r gc pidigits 22.92u 0.02s 22.97r gc_B pidigits 22.62u 0.00s 22.65r amd64 w/ big: 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 386 w/ bignum: pidigits 10000 gcc -O2 pidigits.c -lgmp 2.09u 0.00s 2.09r gc pidigits 44.30u 0.01s 44.35r gc_B pidigits 44.29u 0.03s 44.35r 386 w/ big: pidigits 10000 gcc -O2 pidigits.c -lgmp 2.10u 0.00s 2.10r gc pidigits 22.70u 0.06s 22.79r gc_B pidigits 22.80u 0.09s 22.91r R=rsc, gri CC=golang-dev http://codereview.appspot.com/881050 Committer: Russ Cox <rsc@golang.org>
2010-04-20gc: print x[y:] correctlyRuss Cox1-1/+2
R=ken2 CC=golang-dev http://codereview.appspot.com/955041
2010-04-20runtime: rename cgo2c, *.cgo to goc2c, *.gocRuss Cox10-4/+4
to avoid confusion with real cgo R=r CC=golang-dev http://codereview.appspot.com/904046
2010-04-20reflect: implement Set(nil), SetValue(nil) for PtrValue and MapValueRuss Cox2-2/+48
R=r CC=golang-dev http://codereview.appspot.com/823048
2010-04-19big: Get rid of function pointers and init functionEvan Shaw4-89/+43
R=rsc, gri CC=golang-dev http://codereview.appspot.com/929041 Committer: Robert Griesemer <gri@golang.org>
2010-04-20godashboard: remove obselete data models and conversion codeAndrew Gerrand1-61/+0
R=rsc CC=golang-dev http://codereview.appspot.com/919045
2010-04-19Added strings.FieldsFunc, a generalization of strings.Fields in style of the ↵Kyle Consalus2-2/+25
strings.Trim*Func functions. R=golang-dev, r CC=golang-dev http://codereview.appspot.com/824051 Committer: Rob Pike <r@golang.org>
2010-04-20godashboard: bz2 compress logs in data storeAndrew Gerrand1-7/+10
This results in a 10-20x size reduction per record. (from ~150kb to ~10kb) This revision has been pushed live, as I'm in the process of converting Log records to bz2-compresed CompressedLog records. I would have waited but we're running seriously low on space and it seemed like a sane (and reversible) move. R=rsc CC=golang-dev http://codereview.appspot.com/872048
2010-04-19gc benchmark: Update package listEvan Shaw1-3/+8
Some old packages on the list were preventing this benchmark from working. R=golang-dev, r CC=golang-dev http://codereview.appspot.com/820045 Committer: Rob Pike <r@golang.org>
2010-04-19gc: cmplx typecheck bug fixRuss Cox2-1/+32
Fixes issue 729. R=ken2 CC=golang-dev http://codereview.appspot.com/875048
2010-04-19syscall: match linux Setsid function signature to darwinAndrew Gerrand4-7/+10
SETSID does return an errno - any reason why it has been done this way in zsyscall_linux_* ? Otherwise it should be the same as darwin. From SETSID(2) on my Linux box: ERRORS On error, -1 is returned, and errno is set. Fixes issue 730 R=rsc CC=golang-dev http://codereview.appspot.com/878047
2010-04-18reflect: add FieldByNameFuncRaif S. Naffah4-19/+160
xml: add support for XML marshalling embedded structs. R=rsc CC=golang-dev http://codereview.appspot.com/837042 Committer: Russ Cox <rsc@golang.org>
2010-04-18net: fix bugs in packStructValueMichael Hoisie1-4/+4
packStructValue was cutting off last byte of uint32 in _Dns_msg.Unpack, use packRR for rr types R=rsc CC=golang-dev http://codereview.appspot.com/844048 Committer: Russ Cox <rsc@golang.org>
2010-04-18json: scanner, Compact, Indent, and testsRuss Cox4-0/+1002
This is the first of probably four separate CLs for the new implementation of the json package. The scanner is the core of the new implementation. The other CLs would be the new decoder, the new encoder, and support for JSON streams. R=r CC=golang-dev http://codereview.appspot.com/802051
2010-04-16rpc: Add Close() method to rpc.Client to allow graceful connection teardown.Rob Pike1-2/+15
Fixes issue 675. R=rsc, msolo CC=golang-dev http://codereview.appspot.com/882049
2010-04-16 the android runner scriptKai Backman3-6/+64
this is a version synthesized from rsc's, dean's and my versions. changes and updates: - embeds the retval script and pushes a new version to the device if needed - passes arguments correctly to the program on the device - export GOARCH, GOTRACEBACK and GOGC from the local environment to the device. - added times.out support to run-arm enabled a few tests that are now passing and moved the GOGC=off workaround to run-arm. R=dpx CC=golang-dev, rsc http://codereview.appspot.com/880046
2010-04-16add Sam Thorogood (of Google Inc.) to CONTRIBUTORSAndrew Gerrand1-0/+1
R=r CC=golang-dev http://codereview.appspot.com/890048
2010-04-15exp/eval: Always read float literals as base 10Evan Shaw2-1/+2
We were letting bignum decide, which caused problems with float literals with a leading 0. R=gri CC=golang-dev http://codereview.appspot.com/816047 Committer: Robert Griesemer <gri@golang.org>
2010-04-15go/ast: Update comment to mention imaginary literalsEvan Shaw1-1/+1
R=gri CC=golang-dev http://codereview.appspot.com/846050 Committer: Robert Griesemer <gri@golang.org>
2010-04-15exp/eval: Implement x[lo:]Evan Shaw2-6/+23
R=golang-dev, gri CC=golang-dev http://codereview.appspot.com/908044 Committer: Robert Griesemer <gri@golang.org>
2010-04-15flag: eliminate unnecessary structsRuss Cox1-48/+32
R=r CC=golang-dev http://codereview.appspot.com/872045
2010-04-15"godoc -src pkg_name" excludes duplicates entriesAndrei Vieru2-10/+16
$ godoc xml | grep Copy\(\) func (c CharData) Copy() CharData func (c Comment) Copy() Comment func (d Directive) Copy() Directive func (p ProcInst) Copy() ProcInst func (e StartElement) Copy() StartElement -------------------------------------------- $ godoc -src xml | grep Copy\(\) func (c CharData) Copy() CharData -------------------------------------------- $ godoc -src xml Copy func (c CharData) Copy() CharData { return CharData(makeCopy(c)) } -------------------------------------------- The command "godoc -src pkg_name" should output the interface of the named package, but it excludes all duplicate entries. Also the command "godoc -src pkg_name method_name" will output the source code only for one method even if there are more of them with the same name in the same package. This patch set fixes this issue. R=gri CC=golang-dev http://codereview.appspot.com/883051 Committer: Robert Griesemer <gri@golang.org>
2010-04-15synchronize ARM runner environment variable with run-armKai Backman2-2/+2
R=rsc CC=golang-dev http://codereview.appspot.com/912041
2010-04-15support for printing floats:Kai Backman4-26/+409
fmt.Printf("float32 %f\n", float32(1234.56789)) fmt.Printf("float64 %f\n", float64(1234.56789)) -> float32 1234.567871 float64 1234.567890 this is a snapshot. extended instruction support, corner cases and fixes coming in subseuent cls. R=rsc CC=dpx, golang-dev http://codereview.appspot.com/876045
2010-04-14scanner: implement Peek() to look at the next char w/o advancingRobert Griesemer1-0/+8
R=rsc CC=golang-dev http://codereview.appspot.com/840045
2010-04-14bytes: shuffle implementation, making WriteByte 50% fasterRuss Cox1-37/+27
R=r CC=golang-dev http://codereview.appspot.com/920041
2010-04-14release.2010-04-13 part twoAndrew Gerrand0-0/+0
R=rsc, r CC=golang-dev http://codereview.appspot.com/896045
2010-04-13runtime: better trace for fault due to nil pointer callRuss Cox7-20/+72
R=r CC=golang-dev http://codereview.appspot.com/854048
2010-04-13os, syscall: mingw bug fixesAlex Brainman3-14/+11
R=rsc CC=golang-dev http://codereview.appspot.com/815044 Committer: Russ Cox <rsc@golang.org>
2010-04-13go_spec updatesRuss Cox1-5/+5
R=r, iant CC=golang-dev http://codereview.appspot.com/921041
2010-04-14release.2010-04-13Andrew Gerrand1-0/+36
R=rsc, r CC=golang-dev http://codereview.appspot.com/902045
2010-04-13os: mingw version of Readdir() and Stat() implementedAlex Brainman11-110/+345
R=rsc CC=golang-dev http://codereview.appspot.com/851045 Committer: Russ Cox <rsc@golang.org>
2010-04-138l: add DOS stub to PE binariesEvan Shaw1-2/+23
R=rsc CC=golang-dev http://codereview.appspot.com/915041 Committer: Russ Cox <rsc@golang.org>
2010-04-13netchan: allow client to send as well as receive.Rob Pike4-122/+241
much rewriting and improving, but it's still experimental. R=rsc CC=golang-dev http://codereview.appspot.com/875045
2010-04-13template: use panic/recover to simplify internal error handling.Rob Pike1-50/+32
R=rsc CC=golang-dev http://codereview.appspot.com/824049
2010-04-13Use the copy function rather than a loop.Ian Lance Taylor1-4/+2
R=r CC=golang-dev http://codereview.appspot.com/882047
2010-04-12test: minor updates to avoid bitrotChristopher Wedgwood2-6/+6
R=rsc, r CC=golang-dev http://codereview.appspot.com/854046 Committer: Russ Cox <rsc@golang.org>
2010-04-13Remove exp/exception as it's no longer relevantChristopher Wedgwood4-156/+0
R=gri, adg CC=golang-dev, r, rsc http://codereview.appspot.com/857048 Committer: Andrew Gerrand <adg@golang.org>
2010-04-12fixes for rpc:Rob Pike1-2/+4
- don't log normal EOF - fix ServeConn to block as documented R=rsc, msolo CC=golang-dev http://codereview.appspot.com/886043
2010-04-12gc: zero unnamed return values on entry if func has deferRuss Cox2-4/+36
R=ken2 CC=golang-dev http://codereview.appspot.com/891050
2010-04-12xml: update documentation to match current coding styleChristopher Wedgwood1-14/+13
R=rsc, r CC=golang-dev http://codereview.appspot.com/891048 Committer: Rob Pike <r@golang.org>
2010-04-12fmt format verb %b bugAndrei Vieru3-9/+11
fmt.Printf("%b", int8(-1)) prints 64 ones instead of 8. This happens only for signed integers (int8, in16 and int32). I guess it's because of the way the conversion between integer types works. From go spec: "Conversions between integer types. If the value is a signed quantity, it is sign extended to implicit infinite precision ....". And there are several conversions to int64 and uint64 in the fmt package. This pathch solves only half of the problem. On a 32 bit system, an fmt.Printf("%b", int(-1)) should still print 64 ones. R=golang-dev, r CC=golang-dev http://codereview.appspot.com/891049 Committer: Rob Pike <r@golang.org>
2010-04-12CLA: Andrei VieruRob Pike2-0/+2
R=rsc CC=golang-dev http://codereview.appspot.com/890044
2010-04-11json: update documentation to match current coding styleChristopher Wedgwood1-6/+6
R=rsc CC=golang-dev http://codereview.appspot.com/888045 Committer: Russ Cox <rsc@golang.org>
2010-04-11gc: compile s == "" as len(s) == 0Russ Cox1-0/+24
R=ken2 CC=golang-dev http://codereview.appspot.com/840043