- 20 Nov, 2015 1 commit
-
-
Joe Tsai authored
iEEETable violates the Go naming conventions and is inconsistent with the rest of the package. Use ieeeTable instead. Change-Id: I04b201aa39759d159de2b0295f43da80488c2263 Reviewed-on: https://go-review.googlesource.com/17068 Reviewed-by:
Brad Fitzpatrick <bradfitz@golang.org> Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
-
- 16 Sep, 2015 1 commit
-
-
Klaus Post authored
IEEE is the most commonly used CRC-32 polynomial, used by zip, gzip and others. Based on http://www.intel.com/content/dam/www/public/us/en/documents/white-papers/fast-crc-computation-generic-polynomials-pclmulqdq-paper.pdf benchmark old ns/op new ns/op delta BenchmarkIEEECrc1KB-8 3193 352 -88.98% BenchmarkIEEECrc4KB-8 5025 1307 -73.99% BenchmarkCastagnoliCrc1KB-8 126 126 +0.00% benchmark old MB/s new MB/s speedup BenchmarkIEEECrc1KB-8 320.68 2901.92 9.05x BenchmarkIEEECrc4KB-8 815.08 3131.80 3.84x BenchmarkCastagnoliCrc1KB-8 8100.80 8109.78 1.00x Change-Id: I99c9a48365f631827f516e44f97e86155f03cb90 Reviewed-on: https://go-review.googlesource.com/14080 Reviewed-by:
Keith Randall <khr@golang.org>
-
- 10 Sep, 2015 1 commit
-
-
Shenghou Ma authored
Fixes #12350. Change-Id: I3dcb0e2190c11f83f15fb07cc637fead54f734f7 Reviewed-on: https://go-review.googlesource.com/14275 Reviewed-by:
Ian Lance Taylor <iant@golang.org>
-
- 04 Sep, 2015 1 commit
-
-
Joe Tsai authored
Explicitly say that *Table returned by MakeTable may not be modified. Otherwise, this leads to very subtle bugs that may or may not manifest themselves. Same comment was made on package crc64, to keep the future open to the caching tables that crc32 effectively does. Fixes: #12487. Change-Id: I2881bebb8b16f6f8564412172774c79c2593c6c1 Reviewed-on: https://go-review.googlesource.com/14258 Reviewed-by:
Ian Lance Taylor <iant@golang.org>
-
- 18 Jun, 2015 1 commit
-
-
Davies Liu authored
The Slicing-By-8 [1] algorithm has much performance improvements than current approach. This patch only uses it for IEEE, which is the most common case in practice. There is the benchmark on Mac OS X 10.9: benchmark old MB/s new MB/s speedup BenchmarkIEEECrc1KB 349.40 353.03 1.01x BenchmarkIEEECrc4KB 351.55 934.35 2.66x BenchmarkCastagnoliCrc1KB 7037.58 7392.63 1.05x This algorithm need 8K lookup table, so it's enabled only for block larger than 4K. We can see about 2.6x improvement for IEEE. Change-Id: I7f786d20f0949245e4aa101d7921669f496ed0f7 Reviewed-on: https://go-review.googlesource.com/1863 Reviewed-by:
Russ Cox <rsc@golang.org>
-
- 04 May, 2015 1 commit
-
-
Shenghou Ma authored
Updates #8229. Change-Id: I3e691479d3659ed1b3ff8ebbb71b4fc03f2e67af Reviewed-on: https://go-review.googlesource.com/9680 Reviewed-by:
Rob Pike <r@golang.org>
-
- 24 Apr, 2015 1 commit
-
-
Aamir Khan authored
Explicitly specify that we represent polynomial in reversed notation Fixes #8229 Change-Id: Idf094c01fd82f133cd0c1b50fa967d12c577bdb5 Reviewed-on: https://go-review.googlesource.com/9237 Reviewed-by:
David Chase <drchase@google.com>
-
- 12 Nov, 2014 1 commit
-
-
Nigel Tao authored
LGTM=minux R=adg, minux CC=golang-codereviews https://golang.org/cl/170520043
-
- 08 Sep, 2014 1 commit
-
-
Russ Cox authored
Preparation was in CL 134570043. This CL contains only the effect of 'hg mv src/pkg/* src'. For more about the move, see golang.org/s/go14nopkg.
-
- 10 Apr, 2012 1 commit
-
-
Pascal S. de Kloe authored
Feed append the complete content at once. BenchmarkAdler32KB 1000000 2534 ns/op 404.05 MB/s BenchmarkCrc32KB 500000 4757 ns/op 215.26 MB/s BenchmarkCrc64KB 500000 4769 ns/op 214.70 MB/s BenchmarkFnv32KB 1000000 2417 ns/op 423.64 MB/s BenchmarkFnv32aKB 1000000 2408 ns/op 425.23 MB/s BenchmarkFnv64KB 500000 4262 ns/op 240.21 MB/s BenchmarkFnv64aKB 500000 4234 ns/op 241.83 MB/s R=iant, rsc, r, minux.ma CC=golang-dev https://golang.org/cl/5937053
-
- 18 Jan, 2012 1 commit
-
-
Luit van Drongelen authored
First was, apart from adding tests, a single line of code (to add the constructor function). Adding SHA512-based hashing to crypto/hmac required minor rework of the package because of a previously hardcoded block-size in it's implementation. Instead of using a hash.Hash generator function the constructor function now uses a crypto.Hash type, which was extended to expose information about block size. The only standard library package impacted by the change is crypto/tls, for which the fix is included in this patch. It might be useful to extend gofix to include this API change too. R=agl, r, rsc, r CC=golang-dev https://golang.org/cl/5550043
-
- 01 Dec, 2011 1 commit
-
-
Adam Langley authored
This is the result of running `gofix -r hashsum` over the tree, changing the hash function implementations by hand and then fixing a couple of instances where gofix didn't catch something. The changed implementations are as simple as possible while still working: I'm not trying to optimise in this CL. R=rsc, cw, rogpeppe CC=golang-dev https://golang.org/cl/5448065
-
- 02 Nov, 2011 1 commit
-
-
Russ Cox authored
R=golang-dev, iant CC=golang-dev https://golang.org/cl/5322051
-
- 12 Jul, 2011 1 commit
-
-
Adam Langley authored
Using the CRC32 instruction speeds up the Castagnoli computation by about 20x on a modern Intel CPU. R=rsc CC=golang-dev https://golang.org/cl/4650072
-
- 19 Apr, 2011 1 commit
-
-
Nigel Tao authored
R=rsc CC=golang-dev https://golang.org/cl/4442064
-
- 13 Mar, 2010 1 commit
-
-
Russ Cox authored
hash/crc32: add Update function hash: add Sum64 interface R=r CC=golang-dev https://golang.org/cl/445042
-
- 15 Dec, 2009 1 commit
-
-
Robert Griesemer authored
parsing and printing to new syntax. Use -oldparser to parse the old syntax, use -oldprinter to print the old syntax. 2) Change default gofmt formatting settings to use tabs for indentation only and to use spaces for alignment. This will make the code alignment insensitive to an editor's tabwidth. Use -spaces=false to use tabs for alignment. 3) Manually changed src/exp/parser/parser_test.go so that it doesn't try to parse the parser's source files using the old syntax (they have new syntax now). 4) gofmt -w src misc test/bench 3rd set of files. R=rsc CC=golang-dev https://golang.org/cl/180048
-
- 11 Nov, 2009 1 commit
-
-
Russ Cox authored
Fixes #38. R=r1, r https://golang.org/cl/152072
-
- 10 Nov, 2009 1 commit
-
-
Robert Griesemer authored
rsc's algorithm - applied gofmt -w misc src - partial CL (last chunk) R=rsc, r http://go/go-review/1024041
-
- 09 Nov, 2009 1 commit
-
-
Robert Griesemer authored
R=rsc, r http://go/go-review/1025029
-
- 06 Nov, 2009 1 commit
-
-
Robert Griesemer authored
- enabled for function declarations (not just function literals) - applied gofmt -w $GOROOT/src (look for instance at src/pkg/debug/elf/elf.go) R=r, rsc CC=go-dev http://go/go-review/1026006
-
- 07 Oct, 2009 1 commit
-
-
Russ Cox authored
R=gri DELTA=1359 (138 added, 32 deleted, 1189 changed) OCL=35408 CL=35420
-
- 09 Jun, 2009 1 commit
-
-
Rob Pike authored
tests: all.bash passes, gobuild still works, godoc still works. R=rsc OCL=30096 CL=30102
-
- 21 May, 2009 2 commits
-
-
Russ Cox authored
R=r DELTA=3 (0 added, 1 deleted, 2 changed) OCL=29151 CL=29176
-
Russ Cox authored
* new package hash defining interfaces Hash and Hash32. * adler32 and crc32 return Hash32 instead of specific types. * adler32 and crc32 provide non-allocating methods for single slices. * sha1 and md5 move to crypto, return Hash. * sum.go, a simple test program, moves to /usr/rsc. * refresh Make.deps R=r DELTA=1908 (935 added, 923 deleted, 50 changed) OCL=29095 CL=29135
-
- 08 May, 2009 1 commit
-
-
Rob Pike authored
(slipped through the cracks last time) R=rsc DELTA=2436 (1337 added, 1090 deleted, 9 changed) OCL=28427 CL=28443
-
- 17 Apr, 2009 1 commit
-
-
Rob Pike authored
lib/template updated to use new setup; its clients also updated. Step 2 will make os's error support internally much cleaner. R=rsc OCL=27586 CL=27586
-
- 08 Mar, 2009 1 commit
-
-
Rob Pike authored
R=rsc DELTA=50 (33 added, 4 deleted, 13 changed) OCL=25878 CL=25887
-
- 03 Mar, 2009 1 commit
-
-
Russ Cox authored
plus significant hand editing. Back to T{x} for composite literals. R=r OCL=25612 CL=25632
-
- 13 Feb, 2009 1 commit
-
-
Russ Cox authored
only non-trivial changes are in convlit1.go golden.out R=gri OCL=25019 CL=25024
-
- 20 Jan, 2009 1 commit
-
-
Russ Cox authored
TBR=r OCL=23121 CL=23127
-
- 16 Jan, 2009 1 commit
-
-
Russ Cox authored
R=r DELTA=235 (6 added, 26 deleted, 203 changed) OCL=22907 CL=22938
-
- 06 Jan, 2009 1 commit
-
-
Russ Cox authored
R=r OCL=22166 CL=22166
-
- 19 Dec, 2008 2 commits
- 24 Nov, 2008 1 commit
-
-
Russ Cox authored
all could probably be made faster. R=r DELTA=929 (929 added, 0 deleted, 0 changed) OCL=19879 CL=19911
-