1. 26 Mar, 2016 2 commits
    • Josh Bleecher Snyder's avatar
      cmd/compile: don’t generate Nodes for PCDATA · 080e2d43
      Josh Bleecher Snyder authored
      We were allocating two Nodes just to help Naddr
      fill in Type and Offset.
      Fill them in directly instead.
      
      Passes toolstash -cmp.
      
      name       old time/op     new time/op     delta
      Template       324ms ± 5%      320ms ± 5%  -1.34%        (p=0.033 n=25+22)
      Unicode        164ms ± 6%      162ms ± 5%    ~           (p=0.152 n=24+23)
      GoTypes        1.05s ± 5%      1.05s ± 6%    ~           (p=0.653 n=23+25)
      Compiler       5.12s ± 4%      5.06s ± 3%  -1.13%        (p=0.006 n=25+23)
      MakeBash       41.8s ± 2%      41.6s ± 3%  -0.65%        (p=0.024 n=24+24)
      
      name       old alloc/op    new alloc/op    delta
      Template      57.8MB ± 0%     57.3MB ± 0%  -0.87%        (p=0.000 n=25+25)
      Unicode       41.2MB ± 0%     41.1MB ± 0%  -0.29%        (p=0.000 n=24+22)
      GoTypes        193MB ± 0%      191MB ± 0%  -0.97%        (p=0.000 n=22+25)
      Compiler       850MB ± 0%      840MB ± 0%  -1.28%        (p=0.000 n=25+25)
      
      name       old allocs/op   new allocs/op   delta
      Template        506k ± 0%       500k ± 0%  -1.15%        (p=0.000 n=25+25)
      Unicode         402k ± 0%       400k ± 0%  -0.37%        (p=0.000 n=24+25)
      GoTypes        1.52M ± 0%      1.50M ± 0%  -1.42%        (p=0.000 n=25+25)
      Compiler       6.16M ± 0%      6.04M ± 0%  -2.05%        (p=0.000 n=24+25)
      
      Change-Id: Ia80d28b32023a620d9ddf99c1252c16fa6477b3c
      Reviewed-on: https://go-review.googlesource.com/21174
      Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
      080e2d43
    • Christopher Nelson's avatar
      misc/cgo/testcarchive: split main.c into unix and non-unix · 93c5fbf3
      Christopher Nelson authored
      This is in support of https://golang.org/cl/18057 which adds
      support for c-archive to the Windows platform.
      
      The signal handling tests do not compile on Windows. This splits
      them out into a separate main_unix.c file, and conditionally
      includes them for non-Windows platforms.
      
      Change-Id: Ic79ce83da7656d6703505e514554748a482b81a1
      Reviewed-on: https://go-review.googlesource.com/21086Reviewed-by: default avatarIan Lance Taylor <iant@golang.org>
      Run-TryBot: Ian Lance Taylor <iant@golang.org>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      93c5fbf3
  2. 25 Mar, 2016 28 commits
  3. 24 Mar, 2016 10 commits