aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2011-03-16weekly.2011-03-15weekly.2011-03-15Andrew Gerrand
R=r CC=golang-dev https://golang.org/cl/4272052
2011-03-15gob: keep free lists of encoder and decoder states.Rob Pike
Avoids 3 mallocs in a round trip encoding/decoding a struct. R=rsc, rsc1 CC=golang-dev https://golang.org/cl/4278052
2011-03-16gofix: fix godoc docAlex Brainman
R=golang-dev, adg CC=golang-dev https://golang.org/cl/4290049
2011-03-16gofix: fix procattr registration, testsRuss Cox
R=adg CC=golang-dev https://golang.org/cl/4275054
2011-03-15gofix: procattrRuss Cox
R=adg CC=golang-dev https://golang.org/cl/4274059
2011-03-15go/printer: output tuning for gofixRobert Griesemer
If braces don't have position information for a composite literal, don't assume alignment of key:value pairs under the (wrong) assumption that there may be multiple lines. R=rsc CC=golang-dev https://golang.org/cl/4297043
2011-03-15gob: move benchmarks to a new timing_test.go file.Rob Pike
Add malloc counts for encode and decode. R=rsc CC=golang-dev https://golang.org/cl/4290048
2011-03-15debug/proc: fix buildRuss Cox
R=r CC=golang-dev https://golang.org/cl/4273060
2011-03-15rpc: add the ability to write out a memory profile during testing.Rob Pike
R=rsc, dsymonds CC=golang-dev https://golang.org/cl/4290047
2011-03-15rpc: add benchmarksRob Pike
On my mac: mallocs per rpc round trip: 144 rpc.BenchmarkEndToEnd 10000 228244 ns/op Room for improvement. R=rsc CC=golang-dev https://golang.org/cl/4274058
2011-03-15lib9, libmach: Change GOOS references to GOHOSTOSEvan Shaw
This makes it possible to build Windows binaries on non-Windows OSes. R=golang-dev, rsc1, rsc CC=golang-dev https://golang.org/cl/4271046
2011-03-15os, syscall: add ProcAttr type. Change StartProcess etc. to use it.Roger Peppe
The Windows code is untested. R=rsc, gri, brainman, rsc1 CC=golang-dev https://golang.org/cl/4253052
2011-03-15gofix: new command for updating code to new releaseRuss Cox
R=bradfitzgo, dsymonds, r, gri, adg CC=golang-dev https://golang.org/cl/4282044
2011-03-15gc: diagnose unused labelsRuss Cox
R=ken2 CC=golang-dev https://golang.org/cl/4287047
2011-03-15remove unused labelsRuss Cox
R=golang-dev, gri CC=golang-dev https://golang.org/cl/4274052
2011-03-15gofmt: simpler walkDirRuss Cox
Swapping the goroutines lets them reuse the communication completion on v instead of needing a second channel (done). R=gri CC=golang-dev https://golang.org/cl/4287045
2011-03-15spec: disallow unused labelsRuss Cox
Also change labelled examples to use gofmt formatting. R=gri, r, jnml CC=golang-dev https://golang.org/cl/4287046
2011-03-15httptest: default the Recorder status code to 200 on a WriteBrad Fitzpatrick
This matches the real ResponseWriter behavior. R=rsc CC=golang-dev https://golang.org/cl/4291048
2011-03-15openpgp: add PublicKey KeyId string accessorsBrad Fitzpatrick
R=agl, agl1 CC=golang-dev https://golang.org/cl/4297041
2011-03-15rpc: add buffering to the encode path.Rob Pike
This reduces the number of writes by 2 (1 client, 1 server) on each round trip. A simple test shows 24% higher throughput. R=rsc CC=golang-dev https://golang.org/cl/4279057
2011-03-14libmach: correct string comparison to revive 6cov on darwinDave Cheney
R=golang-dev, r, dsymonds, rsc1 CC=golang-dev https://golang.org/cl/4277046
2011-03-145l: fix buildRuss Cox
R=ken2 CC=golang-dev https://golang.org/cl/4279053
2011-03-14gc: include all dependencies in export metadataRuss Cox
This change records more metadata about what influenced the creation of the object file. Specifically, if a package imports, say, "fmt" but does not need to describe any fmt types in its own export data, that package's object file did not mention the dependency on "fmt" before. Now it does. Listing the import is purely informational. It has no effect on which files are opened or consulted when importing a package. Import lines are marked indirect when they are needed to explain the API but were not imported directly. For example http imports crypto/tls and exports a struct with a field of type tls.ConnectionState, which contains an x509.Certificate. Since http does not import x509 but needs to explain the x509.Certificate type in its export data, the import of x509 is marked as indirect. These import lines were always present; marking them with the indirect comment makes clear which were imported directly and which are incidental. R=ken2 CC=golang-dev https://golang.org/cl/4295048
2011-03-14build: remove duplicate dependency in Make.cmdRobert Hencke
R=golang-dev, dfc, rsc1, rsc CC=golang-dev https://golang.org/cl/4274048
2011-03-12crypto/tls: fix compile errorDave Cheney
Fixes #1555. R=rsc, bradfitzgo CC=golang-dev https://golang.org/cl/4284047
2011-03-12ioutil: add NopCloserBrad Fitzpatrick
R=rsc, dsymonds CC=golang-dev https://golang.org/cl/4278044
2011-03-12http: use Header.Del not empty Set(k, "")Brad Fitzpatrick
Also don't serialize empty headers. R=dsymonds, rsc CC=golang-dev https://golang.org/cl/4275045
2011-03-11runtime/proc.c: which to thatRob Pike
R=iant, dho CC=golang-dev https://golang.org/cl/4286044
2011-03-11runtime: reduce lock contention via wakeup on scheduler unlock.Ian Lance Taylor
R=rsc CC=golang-dev https://golang.org/cl/4275043
2011-03-11net: don't loop to drain wakeup pipe.Ian Lance Taylor
The loop always makes an extra system call. It only makes a difference if more than 100 goroutines started waiting for something to happen on a network file descriptor since the last time the pipe was drained, which is unlikely since we will be woken up the first time a goroutine starts waiting. If we don't drain the pipe this time, we'll be woken up again right away and can drain again. R=rsc CC=golang-dev https://golang.org/cl/4275042
2011-03-11gob: use bufio on the decode to avoid a system call on each read.Rob Pike
Add a benchmark. BenchmarkEndToEndPipe gives 14.3microseconds/op before, 13.1microseconds/op after, or about 76e3 round trips per second through the kernel. With a bytes buffer, and therefore no system calls for I/O, the numbers go to 7.3microseconds/op, or about 137e3 round trips per second. R=rsc CC=golang-dev https://golang.org/cl/4279045
2011-03-11gotype: clean handling of stdin, added testsRobert Griesemer
- removed uses of global variables - minor cleanups R=r CC=golang-dev https://golang.org/cl/4277044
2011-03-11go/typechecker: fix buildRobert Griesemer
R=rsc CC=golang-dev https://golang.org/cl/4278043
2011-03-11go/parser: first constant in a constant declaration must have a valueRobert Griesemer
R=r, rsc1 CC=golang-dev https://golang.org/cl/4291042
2011-03-11build: run gotest in misc/cgo/testRuss Cox
R=golang-dev, iant, r CC=golang-dev https://golang.org/cl/4239079
2011-03-11runtime: split non-debugging malloc interface out of debug.go into mem.goRuss Cox
R=r, dsymonds CC=golang-dev https://golang.org/cl/4273045
2011-03-11go code: replace closed(c) with x, ok := <-cRuss Cox
R=golang-dev, rog, bradfitzwork, r CC=golang-dev https://golang.org/cl/4243072
2011-03-11gc, runtime: replace closed(c) with x, ok := <-cRuss Cox
R=ken2, ken3 CC=golang-dev https://golang.org/cl/4259064
2011-03-11spec: remove closed from language, replaced by x, ok = <-cRuss Cox
R=gri, r, r2 CC=golang-dev https://golang.org/cl/4249065
2011-03-11http: rename interface Transport to RoundTripperBrad Fitzpatrick
Transport.Do -> RoundTripper.RoundTrip This makes way for a subsequent CL to export the currently private RoundTripper implementation as struct Transport. R=rsc, r CC=golang-dev https://golang.org/cl/4286043
2011-03-11gotype: commandline tool to typecheck go programsRobert Griesemer
First version. Handles scope analysis only at the moment. R=rsc, r, eds CC=golang-dev https://golang.org/cl/4259065
2011-03-11http: fix transport crash when request URL is nilBrad Fitzpatrick
Fixes #1602 R=rsc, petar-m CC=golang-dev https://golang.org/cl/4284043
2011-03-11gopack: omit time stampsRuss Cox
This makes it possible to build a package twice and get the same bytes both times. R=r, dsymonds, r2 CC=golang-dev https://golang.org/cl/4248077
2011-03-11.hgtags: s/release/weekly/Andrew Gerrand
.hgtags, release.html: tag current weekly as release.r56 R=r, rsc CC=golang-dev https://golang.org/cl/4281041
2011-03-10io/ioutil: clean-up of ReadAll and ReadFileRobert Griesemer
Make ReadAll use the same mechanism as ReadFile. R=r CC=golang-dev https://golang.org/cl/4279041
2011-03-10go/ast: fix printing of mapsRobert Griesemer
Print a newline after each map entry; similar to the style used for slices and structs. R=r, r2 CC=golang-dev https://golang.org/cl/4274042
2011-03-10go/ast: ast.Print needs a file set to print position values nicelyRobert Griesemer
Also removed a TODO (AST nodes have been restructured a while ago). R=r CC=golang-dev https://golang.org/cl/4245077
2011-03-10gofmt: remove -trace and -ast flagsRobert Griesemer
Functionality was only present for debuggging and now is available in gocheck where is makes more sense. R=rsc CC=golang-dev https://golang.org/cl/4239078
2011-03-10flag: visit the flags in sorted order, for better messages.Rob Pike
Fixes #1601. R=rsc CC=golang-dev https://golang.org/cl/4249070
2011-03-10http: run tests even with DISABLE_NET_TESTS=1Brad Fitzpatrick
All tests are now localhost only. R=rsc CC=golang-dev https://golang.org/cl/4271042