Descriptiongo/token: fix data race on FileSet.last
Fixes issue 4345.
Benchmarks are promising,
benchmark old ns/op new ns/op delta
BenchmarkPrint 14716391 14747131 +0.21%
benchmark old ns/op new ns/op delta
BenchmarkParse 8846219 8809343 -0.42%
benchmark old MB/s new MB/s speedup
BenchmarkParse 6.61 6.64 1.00x
Also includes additional tests to improve token.FileSet coverage.
Patch Set 1 #Patch Set 2 : diff -r e7cd0a82d669 https://code.google.com/p/go #Patch Set 3 : diff -r e7cd0a82d669 https://code.google.com/p/go #Patch Set 4 : diff -r e7cd0a82d669 https://go.googlecode.com/hg/ #
Total comments: 1
Patch Set 5 : diff -r e7cd0a82d669 https://go.googlecode.com/hg/ #MessagesTotal messages: 3
|