Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(351)

Issue 6118049: code review 6118049: bytes: add assembly version of Equal for ARM (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
14 years, 1 month ago by dave
Modified:
14 years, 1 month ago
Reviewers:
CC:
golang-dev, zhai, minux1, rsc, iant, nigeltao
Visibility:
Public.

Description

bytes: add assembly version of Equal for ARM BenchmarkEqual32 662 159 -75.98% BenchmarkEqual4K 76545 13719 -82.08% BenchmarkEqual4M 90136700 23588870 -73.83% BenchmarkEqual64M 2147483647 1419616000 -42.63% BenchmarkEqual32 48.32 201.15 4.16x BenchmarkEqual4K 53.51 298.56 5.58x BenchmarkEqual4M 46.53 177.81 3.82x BenchmarkEqual64M 27.12 47.27 1.74x

Patch Set 1 #

Patch Set 2 : diff -r b15b7aaca931 https://code.google.com/p/go #

Patch Set 3 : diff -r b15b7aaca931 https://code.google.com/p/go #

Total comments: 4

Patch Set 4 : diff -r d9a1980f5814 https://code.google.com/p/go #

Patch Set 5 : diff -r d9a1980f5814 https://code.google.com/p/go #

Patch Set 6 : diff -r d9a1980f5814 https://code.google.com/p/go #

Patch Set 7 : diff -r d9a1980f5814 https://code.google.com/p/go #

Total comments: 2

Patch Set 8 : diff -r 12e6877bdced https://code.google.com/p/go #

Patch Set 9 : diff -r d063a7844d48 https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -1 line) Patch
M src/pkg/bytes/asm_arm.s View 1 2 3 4 5 6 7 1 chunk +27 lines, -1 line 0 comments Download

Messages

Total messages: 16
dave_cheney.net
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://code.google.com/p/go
14 years, 1 month ago (2012-04-25 03:38:54 UTC) #1
dave_cheney.net
The benchmark numbers above are incorrect due to the allocator influencing the benchmark time. I ...
14 years, 1 month ago (2012-04-25 03:41:09 UTC) #2
zhai
Here is a slight change to your code, re-ranged instructions, maybe save 2-3 cycles in ...
14 years, 1 month ago (2012-04-25 04:31:13 UTC) #3
dave_cheney.net
Thanks for the suggestion, again the cost of those conditional instructions appears to be slightly ...
14 years, 1 month ago (2012-04-25 06:13:04 UTC) #4
dave_cheney.net
Please take another look.
14 years, 1 month ago (2012-04-26 21:13:08 UTC) #5
dave_cheney.net
ping
14 years, 1 month ago (2012-04-29 23:32:09 UTC) #6
iant
http://codereview.appspot.com/6118049/diff/4001/src/pkg/bytes/asm_arm.s File src/pkg/bytes/asm_arm.s (right): http://codereview.appspot.com/6118049/diff/4001/src/pkg/bytes/asm_arm.s#newcode30 src/pkg/bytes/asm_arm.s:30: MOVW aptr+0(FP), R0 I would move the loads of ...
14 years, 1 month ago (2012-04-30 23:32:05 UTC) #7
dave_cheney.net
Thank you for your review ian. I've tweaked it a bit more to incorporate as ...
14 years, 1 month ago (2012-05-01 02:21:42 UTC) #8
dave_cheney.net
Hello golang-dev@googlegroups.com, qyzhai@gmail.com, minux.ma@gmail.com, rsc@golang.org, iant@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
14 years, 1 month ago (2012-05-01 02:22:00 UTC) #9
dave_cheney.net
Patch set 6 turned out to regress, here are the performance numbers for patch set ...
14 years, 1 month ago (2012-05-01 02:27:57 UTC) #10
iant
LGTM
14 years, 1 month ago (2012-05-01 05:43:16 UTC) #11
dave_cheney.net
Thank you to everyone for your comments. Once there are a few more builders reporting ...
14 years, 1 month ago (2012-05-01 22:56:20 UTC) #12
nigeltao
http://codereview.appspot.com/6118049/diff/20001/src/pkg/bytes/asm_arm.s File src/pkg/bytes/asm_arm.s (right): http://codereview.appspot.com/6118049/diff/20001/src/pkg/bytes/asm_arm.s#newcode45 src/pkg/bytes/asm_arm.s:45: CMP R4, R5 Mixed spaces and tabs after "CMP".
14 years, 1 month ago (2012-05-01 23:07:56 UTC) #13
dave_cheney.net
Will fix On Wed, May 2, 2012 at 9:07 AM, <nigeltao@golang.org> wrote: > > http://codereview.appspot.com/6118049/diff/20001/src/pkg/bytes/asm_arm.s ...
14 years, 1 month ago (2012-05-01 23:08:17 UTC) #14
dave_cheney.net
gofmt has made me lazy, i'll be more careful to check the formatting in the ...
14 years, 1 month ago (2012-05-01 23:14:48 UTC) #15
dave_cheney.net
14 years, 1 month ago (2012-05-02 02:18:34 UTC) #16
*** Submitted as http://code.google.com/p/go/source/detail?r=3a60780b99eb ***

bytes: add assembly version of Equal for ARM

BenchmarkEqual32                       662          159  -75.98%
BenchmarkEqual4K                     76545        13719  -82.08%
BenchmarkEqual4M                  90136700     23588870  -73.83%
BenchmarkEqual64M               2147483647   1419616000  -42.63%

BenchmarkEqual32                     48.32       201.15    4.16x
BenchmarkEqual4K                     53.51       298.56    5.58x
BenchmarkEqual4M                     46.53       177.81    3.82x
BenchmarkEqual64M                    27.12        47.27    1.74x

R=golang-dev, qyzhai, minux.ma, rsc, iant, nigeltao
CC=golang-dev
http://codereview.appspot.com/6118049
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b