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

Issue 105280044: code review 105280044: runtime: implement eqstring in assembly. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 12 months ago by khr
Modified:
10 years, 12 months ago
Reviewers:
bradfitz, cahooon, josharian
CC:
golang-codereviews, bradfitz, josharian, dave_cheney.net, khr1
Visibility:
Public.

Description

runtime: implement eqstring in assembly. BenchmarkCompareStringEqual 10.4 7.33 -29.52% BenchmarkCompareStringIdentical 3.99 3.67 -8.02% BenchmarkCompareStringSameLength 9.80 6.84 -30.20% BenchmarkCompareStringDifferentLength 1.09 0.95 -12.84% BenchmarkCompareStringBigUnaligned 75220 76071 +1.13% BenchmarkCompareStringBig 69843 74746 +7.02%

Patch Set 1 #

Patch Set 2 : diff -r 2dc2bf98e6e3 https://khr%40golang.org@code.google.com/p/go/ #

Patch Set 3 : diff -r 2dc2bf98e6e3 https://khr%40golang.org@code.google.com/p/go/ #

Patch Set 4 : diff -r 2dc2bf98e6e3 https://khr%40golang.org@code.google.com/p/go/ #

Patch Set 5 : diff -r 2dc2bf98e6e3 https://khr%40golang.org@code.google.com/p/go/ #

Total comments: 3

Patch Set 6 : diff -r 2dc2bf98e6e3 https://khr%40golang.org@code.google.com/p/go/ #

Patch Set 7 : diff -r 6a85be121cae https://khr%40golang.org@code.google.com/p/go/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+131 lines, -12 lines) Patch
M src/pkg/runtime/asm_386.s View 1 2 3 1 chunk +22 lines, -0 lines 0 comments Download
M src/pkg/runtime/asm_amd64.s View 1 2 3 1 chunk +22 lines, -0 lines 0 comments Download
M src/pkg/runtime/asm_amd64p32.s View 1 2 3 1 chunk +22 lines, -0 lines 0 comments Download
M src/pkg/runtime/asm_arm.s View 1 2 3 1 chunk +27 lines, -0 lines 0 comments Download
M src/pkg/runtime/runtime_test.go View 1 2 3 4 5 1 chunk +38 lines, -0 lines 0 comments Download
M src/pkg/runtime/string.goc View 1 1 chunk +0 lines, -12 lines 0 comments Download

Messages

Total messages: 16
khr
Hello golang-codereviews@googlegroups.com, I'd like you to review this change to https://khr%40golang.org@code.google.com/p/go/
10 years, 12 months ago (2014-06-17 00:12:26 UTC) #1
bradfitz
LGTM On Mon, Jun 16, 2014 at 5:12 PM, <khr@golang.org> wrote: > Reviewers: golang-codereviews, > ...
10 years, 12 months ago (2014-06-17 00:16:36 UTC) #2
josharian
The code looks good. Can we keep the original or a pseudo-code equivalent around as ...
10 years, 12 months ago (2014-06-17 00:43:43 UTC) #3
bradfitz
If we do keep the original, it'd be nice to keep it building as well. ...
10 years, 12 months ago (2014-06-17 00:51:35 UTC) #4
dave_cheney.net
Testing on linux/arm now. I think you need to also make the change to asm_arm64p32.s
10 years, 12 months ago (2014-06-17 01:39:26 UTC) #5
dave_cheney.net
LG on linux/arm [root@alarmcbi runtime]# benchcmp {old,new}.txt benchmark old ns/op new ns/op delta BenchmarkCompareStringEqual 220 ...
10 years, 12 months ago (2014-06-17 01:46:25 UTC) #6
khr1
On Mon, Jun 16, 2014 at 6:39 PM, <dave@cheney.net> wrote: > Testing on linux/arm now. ...
10 years, 12 months ago (2014-06-17 02:18:19 UTC) #7
josharian
> In lieu of that, some short summary comments on the assembly would probably > ...
10 years, 12 months ago (2014-06-17 02:21:34 UTC) #8
khr1
On Mon, Jun 16, 2014 at 5:43 PM, <josharian@gmail.com> wrote: > The code looks good. ...
10 years, 12 months ago (2014-06-17 02:24:37 UTC) #9
khr1
All fixed up. PTAL. On Mon, Jun 16, 2014 at 7:24 PM, Keith Randall <khr@google.com> ...
10 years, 12 months ago (2014-06-17 02:46:08 UTC) #10
bradfitz
LGTM https://codereview.appspot.com/105280044/diff/80001/src/pkg/runtime/asm_amd64p32.s File src/pkg/runtime/asm_amd64p32.s (right): https://codereview.appspot.com/105280044/diff/80001/src/pkg/runtime/asm_amd64p32.s#newcode720 src/pkg/runtime/asm_amd64p32.s:720: // equivlaent Go code. typo: equivalent. here and ...
10 years, 12 months ago (2014-06-17 02:53:37 UTC) #11
khr1
On Mon, Jun 16, 2014 at 7:53 PM, <bradfitz@golang.org> wrote: > LGTM > > > ...
10 years, 12 months ago (2014-06-17 03:09:49 UTC) #12
josharian
LGTM > > make one of the strings equal but different? > > > > ...
10 years, 12 months ago (2014-06-17 03:20:32 UTC) #13
bradfitz
At least add a comment in the code like my pseudo code? The assembly refers ...
10 years, 12 months ago (2014-06-17 03:22:16 UTC) #14
khr
*** Submitted as https://code.google.com/p/go/source/detail?r=62285adb2b50 *** runtime: implement eqstring in assembly. BenchmarkCompareStringEqual 10.4 7.33 -29.52% BenchmarkCompareStringIdentical ...
10 years, 12 months ago (2014-06-17 04:00:54 UTC) #15
cahooon
10 years, 12 months ago (2014-06-17 14:54:24 UTC) #16
Message was sent while issue was closed.
On 2014/06/17 04:00:54, khr wrote:
> *** Submitted as https://code.google.com/p/go/source/detail?r=62285adb2b50 ***
> 
> runtime: implement eqstring in assembly.
> 
> BenchmarkCompareStringEqual               10.4          7.33          -29.52%
> BenchmarkCompareStringIdentical           3.99          3.67          -8.02%
> BenchmarkCompareStringSameLength          9.80          6.84          -30.20%
> BenchmarkCompareStringDifferentLength     1.09          0.95          -12.84%
> BenchmarkCompareStringBigUnaligned        75220         76071         +1.13%
> BenchmarkCompareStringBig                 69843         74746         +7.02%
> 
> LGTM=bradfitz, josharian
> R=golang-codereviews, bradfitz, josharian, dave, khr
> CC=golang-codereviews
> https://codereview.appspot.com/105280044

s/equivlaent/equivalent in the asm files
Sign in to reply to this message.

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