Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(156)

Issue 669161: Speed up no-capture case for RegExp.exec(). (Closed)

Created:
10 years, 9 months ago by Erik Corry
Modified:
9 years, 7 months ago
Reviewers:
Kasper Lund
CC:
v8-dev
Visibility:
Public.

Description

Speed up no-capture case for RegExp.exec(). Committed: http://code.google.com/p/v8/source/detail?r=4048

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -12 lines) Patch
M src/regexp-delay.js View 2 chunks +23 lines, -12 lines 1 comment Download

Messages

Total messages: 2 (0 generated)
Erik Corry
10 years, 9 months ago (2010-03-05 14:46:52 UTC) #1
Kasper Lund
10 years, 9 months ago (2010-03-05 14:50:29 UTC) #2
LGTM.

http://codereview.chromium.org/669161/diff/1/2
File src/regexp-delay.js (right):

http://codereview.chromium.org/669161/diff/1/2#newcode180
src/regexp-delay.js:180: var result = new $Array(1);
I wonder if 

   result = [ SubString(s, matchStart, matchEnd) ];

would be faster?

Powered by Google App Engine
This is Rietveld 408576698