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

Issue 1026003002: NOT FOR LANDING: Autofill regexp benchmark (Closed)

Created:
5 years, 9 months ago by vabr (Chromium)
Modified:
5 years, 9 months ago
Reviewers:
Ilya Sherman
CC:
chromium-reviews, estade+watch_chromium.org, browser-components-watch_chromium.org, rouslan+autofillwatch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

NOT FOR LANDING: Autofill regexp benchmark This CL contains a patch with a benchmark for a discussion about changing the regexp library in autofill for performance reasons. COMMIT=False CC=isherman@chromium.org BUG=None

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+175 lines, -0 lines) Patch
M components/autofill/core/browser/BUILD.gn View 2 chunks +2 lines, -0 lines 0 comments Download
M components/autofill/core/browser/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
A components/autofill/core/browser/benchmark.cc View 1 chunk +170 lines, -0 lines 0 comments Download
M components/components_tests.gyp View 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 4 (1 generated)
vabr (Chromium)
NOTE: This is not a review request, I do not intend to land this. Hi ...
5 years, 9 months ago (2015-03-23 12:51:06 UTC) #2
vabr (Chromium)
> The results are pretty much in favour of RE2, which seems to beat ICU ...
5 years, 9 months ago (2015-03-23 13:18:53 UTC) #3
Ilya Sherman
5 years, 9 months ago (2015-03-24 00:36:58 UTC) #4
Thanks for running this benchmark!  I think that back when we looked into this
before, there wasn't a way to precompile RE2 patterns, which was almost
certainly the cause of the slowdown.  Seems like it would be a win to switch to
RE2, keeping the same precompilation that we do for ICU.

IIRC, the other place that we use ICU is in libphonenumber.  It would be
interesting to re-run the benchmark with the patterns used there, and phone
number-like strings as inputs.  libphonenumber uses some really absurdly large
regexes, which I think RE2 used to have trouble with.  But, if RE2 is a win
there too, then maybe we can move all of the autofill code over to using RE2.  I
think we could even remove the ICU dependency from libphonenumber, which the
maintainers of that library would probably appreciate =)

Powered by Google App Engine
This is Rietveld 408576698