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

Issue 156108: code review 156108: add a match arena to regexp to avoid generating garbage. (Closed)

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

Description

add a match arena to regexp to avoid generating garbage. simple regexps run 20x faster. the regex-dna benchmark goes 3x faster.

Patch Set 1 #

Patch Set 2 : code review 156108: add a match arena to regexp to avoid generating garbage. #

Total comments: 2

Patch Set 3 : code review 156108: add a match arena to regexp to avoid generating garbage. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+133 lines, -46 lines) Patch
M src/pkg/regexp/all_test.go View 1 2 2 chunks +27 lines, -0 lines 0 comments Download
M src/pkg/regexp/regexp.go View 1 7 chunks +106 lines, -46 lines 0 comments Download

Messages

Total messages: 3
r
Hello rsc (cc: golang-dev@googlegroups.com), I'd like you to review the following change.
14 years, 5 months ago (2009-11-20 06:10:45 UTC) #1
rsc
LGTM http://codereview.appspot.com/156108/diff/1001/1002 File src/pkg/regexp/all_test.go (right): http://codereview.appspot.com/156108/diff/1001/1002#newcode64 src/pkg/regexp/all_test.go:64: /* uncomment http://codereview.appspot.com/156108/diff/1001/1003 File src/pkg/regexp/regexp.go (right): http://codereview.appspot.com/156108/diff/1001/1003#newcode767 src/pkg/regexp/regexp.go:767: ...
14 years, 5 months ago (2009-11-20 06:29:58 UTC) #2
r
14 years, 5 months ago (2009-11-20 07:12:02 UTC) #3
*** Submitted as http://code.google.com/p/go/source/detail?r=b42108ef8a0b ***

add a match arena to regexp to avoid generating garbage.
simple regexps run 20x faster.
the regex-dna benchmark goes 3x faster.

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

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