1. 28 Aug, 2015 4 commits
    • Dave Cheney's avatar
      doc/go1.6.txt: start go1.6.txt with a note about nacl · 16cf8802
      Dave Cheney authored
      Start go1.6.txt with a note that nacl ports are no longer
      restricted to pepper_41 and a record of the text/template change.
      
      Change-Id: I21dda64aec113c35caf1d565f29e3aac8171480a
      Reviewed-on: https://go-review.googlesource.com/14004Reviewed-by: default avatarRob Pike <r@golang.org>
      16cf8802
    • Daniel Johansson's avatar
      registry: Explain how GetMUIStringValue works and where it falls short · 12663b46
      Daniel Johansson authored
      GetMUIStringValue tries as a convenience to resolve string values even for pathless
      resource DLLs by searching the system directory (one of several paths used
      by the system's standard DLL search order algorithm). This would not be
      needed if regLoadMUIString searched for pathless DLLs itself, but it
      doesn't, instead it needs an absolute path, otherwise it will fail.
      
      This approach works fine for solving issue #12015 (handle localized time
      zone names; for which GetMUIStringValue was created) since tzres.dll that
      is used to resolve localized time zone names has no path in the registry
      but is located under the system directory.
      
      However, this approach will fail if a pathless DLL is located somewhere
      else than the system directory.
      
      Because of this limitation GetMUIStringValue may have to be revised in the
      future to allow for custom paths, possibly through another version of the
      function.
      
      See also:
      https://msdn.microsoft.com/en-us/library/windows/desktop/ms724890%28v=vs.85%29.aspx
      https://msdn.microsoft.com/en-us/library/windows/desktop/ms682586%28v=vs.85%29.aspx
      
      Change-Id: Ida66a0ef1928e0461ce248c795827902d785e6cd
      Reviewed-on: https://go-review.googlesource.com/13929Reviewed-by: default avatarRob Pike <r@golang.org>
      12663b46
    • Dave Cheney's avatar
      syscall: remove nacl srpc helper · de786965
      Dave Cheney authored
      Fixes #11961
      
      Minux removed the use of SRPC in 003dccfa, but the SRPC name service
      code was left in the tree. SRPC was removed in pepper_42 making the
      code, which ran on startup, fail, even though it was not used.
      
      Removing srpc_nacl.go for a total diff of -822 lines has got to count
      as one of the easiest nacl fixes we've had to date.
      
      Change-Id: Ic4e348146bfe47450bbb9cabb91699ba153e6bf0
      Reviewed-on: https://go-review.googlesource.com/13958Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
      Reviewed-by: default avatarMinux Ma <minux@golang.org>
      Run-TryBot: Minux Ma <minux@golang.org>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      de786965
    • Alberto Donizetti's avatar
      compress/bzip2: make decoding faster · 6403c957
      Alberto Donizetti authored
      Issue 6754 reports that Go bzip2 Decode function is much slower
      (about 2.5x in go1.5) than the Python equivalent (which is
      actually just a wrapper around the usual C library) on random data.
      
      Profiling the code shows that half a dozen of CMP instructions in a
      tight loop are responsibile for most of the execution time.
      
      This patch reduces the number of branches of the loop, greatly
      improving performance on random data and speeding up decoding of
      real data.
      
      name            old time/op    new time/op    delta
      DecodeDigits-4    9.28ms ± 1%    8.05ms ± 1%  -13.18%  (p=0.000 n=15+14)
      DecodeTwain-4     28.9ms ± 2%    26.4ms ± 1%   -8.57%  (p=0.000 n=15+14)
      DecodeRand-4      3.94ms ± 1%    3.06ms ± 1%  -22.45%  (p=0.000 n=15+14)
      
      name            old speed      new speed      delta
      DecodeDigits-4  4.65MB/s ± 1%  5.36MB/s ± 1%  +15.21%  (p=0.000 n=13+14)
      DecodeTwain-4   4.32MB/s ± 2%  4.72MB/s ± 1%   +9.36%  (p=0.000 n=15+14)
      DecodeRand-4    4.27MB/s ± 1%  5.51MB/s ± 1%  +28.86%  (p=0.000 n=15+14)
      
      I've run some benchmark comparing Go bzip2 implementation with the
      usual Linux bzip2 command (which is written in C). On my machine
      this patch brings go1.5
        from ~2.26x to ~1.50x of bzip2 time (on 64MB  random data)
        from ~1.70x to ~1.50x of bzip2 time (on 100MB english text)
        from ~2.00x to ~1.88x of bzip2 time (on 64MB  /dev/zero data)
      
      Fixes #6754
      
      Change-Id: I3cb12d2c0c2243c1617edef1edc88f05f91d26d1
      Reviewed-on: https://go-review.googlesource.com/13853Reviewed-by: default avatarNigel Tao <nigeltao@golang.org>
      6403c957
  2. 27 Aug, 2015 9 commits
  3. 26 Aug, 2015 13 commits
  4. 25 Aug, 2015 10 commits
  5. 24 Aug, 2015 4 commits