aboutsummaryrefslogtreecommitdiff
path: root/src/encoding
diff options
context:
space:
mode:
authorKeith Randall <khr@golang.org>2016-03-06 16:58:30 -0800
committerKeith Randall <khr@golang.org>2016-03-21 19:10:24 +0000
commit6a33f7765f79cf2f00f5ca55832d2cfab8beb289 (patch)
treed1cd6a803e32d952e60290c4c863c65bd88db808 /src/encoding
parentb07a214d39814545bbcd1d30f1850a95752dac65 (diff)
downloadgo-6a33f7765f79cf2f00f5ca55832d2cfab8beb289.tar.xz
runtime: use MOVSB instead of MOVSQ for unaligned moves
MOVSB is quite a bit faster for unaligned moves. Possibly we should use MOVSB all of the time, but Intel folks say it might be a bit faster to use MOVSQ on some processors (but not any I have access to at the moment). benchmark old ns/op new ns/op delta BenchmarkMemmove4096-8 93.9 93.2 -0.75% BenchmarkMemmoveUnalignedDst4096-8 256 151 -41.02% BenchmarkMemmoveUnalignedSrc4096-8 175 90.5 -48.29% Fixes #14630 Change-Id: I568e6d6590eb3615e6a699fb474020596be665ff Reviewed-on: https://go-review.googlesource.com/20293 Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'src/encoding')
0 files changed, 0 insertions, 0 deletions