1. 20 Nov, 2015 1 commit
  2. 16 Sep, 2015 1 commit
  3. 10 Sep, 2015 1 commit
  4. 04 Sep, 2015 1 commit
  5. 18 Jun, 2015 1 commit
    • Davies Liu's avatar
      hash/crc32: speedup crc32 of IEEE using slicingBy8 · 1e076035
      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: default avatarRuss Cox <rsc@golang.org>
      1e076035
  6. 04 May, 2015 1 commit
  7. 24 Apr, 2015 1 commit
  8. 12 Nov, 2014 1 commit
  9. 08 Sep, 2014 1 commit
  10. 10 Apr, 2012 1 commit
    • Pascal S. de Kloe's avatar
      hash: more efficient memory allocation · 9feddd0b
      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
      9feddd0b
  11. 18 Jan, 2012 1 commit
    • Luit van Drongelen's avatar
      crypto/hmac: Add HMAC-SHA224 and HMAC-SHA384/512 · a5263c7c
      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
      a5263c7c
  12. 01 Dec, 2011 1 commit
  13. 02 Nov, 2011 1 commit
  14. 12 Jul, 2011 1 commit
  15. 19 Apr, 2011 1 commit
  16. 13 Mar, 2010 1 commit
  17. 15 Dec, 2009 1 commit
    • Robert Griesemer's avatar
      1) Change default gofmt default settings for · a3d1045f
      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
      a3d1045f
  18. 11 Nov, 2009 1 commit
  19. 10 Nov, 2009 1 commit
  20. 09 Nov, 2009 1 commit
  21. 06 Nov, 2009 1 commit
  22. 07 Oct, 2009 1 commit
  23. 09 Jun, 2009 1 commit
    • Rob Pike's avatar
      mv src/lib to src/pkg · d90e7cba
      Rob Pike authored
      tests: all.bash passes, gobuild still works, godoc still works.
      
      R=rsc
      OCL=30096
      CL=30102
      d90e7cba
  24. 21 May, 2009 2 commits
    • Russ Cox's avatar
      I guess I forgot there was a unary ^ operator. · f2dfc55f
      Russ Cox authored
      R=r
      DELTA=3  (0 added, 1 deleted, 2 changed)
      OCL=29151
      CL=29176
      f2dfc55f
    • Russ Cox's avatar
      hash reorg. · 140aed9a
      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
      140aed9a
  25. 08 May, 2009 1 commit
  26. 17 Apr, 2009 1 commit
  27. 08 Mar, 2009 1 commit
    • Rob Pike's avatar
      document hash · 1910a7c5
      Rob Pike authored
      R=rsc
      DELTA=50  (33 added, 4 deleted, 13 changed)
      OCL=25878
      CL=25887
      1910a7c5
  28. 03 Mar, 2009 1 commit
  29. 13 Feb, 2009 1 commit
  30. 20 Jan, 2009 1 commit
  31. 16 Jan, 2009 1 commit
    • Russ Cox's avatar
      casify hash · d2cdcfc1
      Russ Cox authored
      R=r
      DELTA=235  (6 added, 26 deleted, 203 changed)
      OCL=22907
      CL=22938
      d2cdcfc1
  32. 06 Jan, 2009 1 commit
  33. 19 Dec, 2008 2 commits
  34. 24 Nov, 2008 1 commit