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

Issue 152131: code review 152131: move evaluation of null-matching instructions one itera... (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
15 years, 5 months ago by r
Modified:
15 years, 5 months ago
Reviewers:
rsc
CC:
golang-dev
Visibility:
Public.

Description

move evaluation of null-matching instructions one iteration earlier. performance hit of about 20% but more intuitive results for submatches. we need a good regexp package at some point. Fixes issue 110.

Patch Set 1 #

Total comments: 3

Patch Set 2 : code review 152131: move evaluation of null-matching instructions one itera... #

Patch Set 3 : code review 152131: move evaluation of null-matching instructions one itera... #

Unified diffs Side-by-side diffs Delta from patch set Stats (+61 lines, -41 lines) Patch
M src/pkg/regexp/all_test.go View 1 2 4 chunks +6 lines, -10 lines 0 comments Download
M src/pkg/regexp/regexp.go View 1 2 5 chunks +47 lines, -31 lines 0 comments Download
M test/bench/timing.log View 1 chunk +8 lines, -0 lines 0 comments Download

Messages

Total messages: 4
r
Hello rsc (cc: golang-dev@googlegroups.com), I'd like you to review the following change.
15 years, 5 months ago (2009-11-13 23:41:21 UTC) #1
rsc
LGTM http://codereview.appspot.com/152131/diff/1/3 File src/pkg/regexp/regexp.go (right): http://codereview.appspot.com/152131/diff/1/3#newcode657 src/pkg/regexp/regexp.go:657: s = re.addState(s, inst.next(), match, pos, end); This ...
15 years, 5 months ago (2009-11-13 23:48:57 UTC) #2
r
http://codereview.appspot.com/152131/diff/1/3 File src/pkg/regexp/regexp.go (right): http://codereview.appspot.com/152131/diff/1/3#newcode657 src/pkg/regexp/regexp.go:657: s = re.addState(s, inst.next(), match, pos, end); i tried ...
15 years, 5 months ago (2009-11-14 20:11:39 UTC) #3
r
15 years, 5 months ago (2009-11-14 20:23:25 UTC) #4
*** Submitted as http://code.google.com/p/go/source/detail?r=21cae7efdcc6 ***

move evaluation of null-matching instructions one iteration earlier.
performance hit of about 20% but more intuitive results for submatches.
we need a good regexp package at some point.

Fixes issue 110.

R=rsc
CC=golang-dev
http://codereview.appspot.com/152131
Sign in to reply to this message.

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