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

Issue 7549003: Optimize phishing page term feature extraction. (Closed)

Created:
9 years, 4 months ago by Garrett Casto
Modified:
9 years, 4 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jshin+watch_chromium.org, brettw-cc_chromium.org
Visibility:
Public.

Description

Optimize phishing page term feature extraction. We've been seeing in the histograms that for some users, page feature extraction is taking much longer than we would like, up to 200ms between stops. This could possibly contribute to jankiness in the UI. These are some timings from my desktop for how long it takes to extract features before and after these changes. Obviously this is on much better hardware than the use case we are worried about, but hopefully the increase is speed is proportional. Before After CNN 19 7.5 ESPN 22 9.5 Google 12 4 Salon 40 12 BUG= TEST=Ran associated unit tests. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=96097

Patch Set 1 #

Total comments: 2

Patch Set 2 : Remove unnecesary macros in wide_string_piece_unittest.cc #

Total comments: 1

Patch Set 3 : Fix Windows compile errors. #

Total comments: 4

Patch Set 4 : Address Brett's comments. #

Total comments: 4

Patch Set 5 : Address Brett's other comments. #

Patch Set 6 : Fix naming of some variables and Windows compile error. #

Total comments: 12

Patch Set 7 : Address Brian's comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+492 lines, -23 lines) Patch
M base/i18n/case_conversion.h View 1 2 3 1 chunk +3 lines, -3 lines 0 comments Download
M base/i18n/case_conversion.cc View 1 2 3 1 chunk +5 lines, -4 lines 0 comments Download
M base/memory/mru_cache.h View 1 2 3 4 5 6 3 chunks +45 lines, -2 lines 0 comments Download
M base/memory/mru_cache_unittest.cc View 1 chunk +18 lines, -0 lines 0 comments Download
M base/string_piece.h View 1 2 3 4 5 6 4 chunks +156 lines, -0 lines 0 comments Download
M base/string_piece_unittest.cc View 1 2 3 2 chunks +231 lines, -0 lines 0 comments Download
M chrome/renderer/safe_browsing/phishing_term_feature_extractor.h View 1 2 3 4 5 6 4 chunks +14 lines, -1 line 0 comments Download
M chrome/renderer/safe_browsing/phishing_term_feature_extractor.cc View 1 2 3 4 5 6 6 chunks +20 lines, -13 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
Garrett Casto
Brett, I'm happy to move the base/* changes to another CL if you'd like. I ...
9 years, 4 months ago (2011-08-02 02:30:03 UTC) #1
Paweł Hajdan Jr.
Drive-by with testing comments. http://codereview.chromium.org/7549003/diff/1/base/wide_string_piece_unittest.cc File base/wide_string_piece_unittest.cc (right): http://codereview.chromium.org/7549003/diff/1/base/wide_string_piece_unittest.cc#newcode15 base/wide_string_piece_unittest.cc:15: #define CMP_Y(op, x, y) \ ...
9 years, 4 months ago (2011-08-02 17:10:33 UTC) #2
Garrett Casto
http://codereview.chromium.org/7549003/diff/1/base/wide_string_piece_unittest.cc File base/wide_string_piece_unittest.cc (right): http://codereview.chromium.org/7549003/diff/1/base/wide_string_piece_unittest.cc#newcode15 base/wide_string_piece_unittest.cc:15: #define CMP_Y(op, x, y) \ On 2011/08/02 17:10:33, Paweł ...
9 years, 4 months ago (2011-08-02 21:52:28 UTC) #3
Paweł Hajdan Jr.
Code I commented in the drive-by LGTM with a comment. http://codereview.chromium.org/7549003/diff/3001/base/wide_string_piece_unittest.cc File base/wide_string_piece_unittest.cc (right): http://codereview.chromium.org/7549003/diff/3001/base/wide_string_piece_unittest.cc#newcode15 ...
9 years, 4 months ago (2011-08-02 22:03:18 UTC) #4
Garrett Casto
I just realized that this doesn't work on Windows as is. Might want to hold ...
9 years, 4 months ago (2011-08-02 22:03:59 UTC) #5
Garrett Casto
On 2011/08/02 22:03:59, Garrett Casto wrote: > I just realized that this doesn't work on ...
9 years, 4 months ago (2011-08-03 17:33:27 UTC) #6
noelutz
LGTM Nicely done! noe. On 2011/08/03 17:33:27, Garrett Casto wrote: > On 2011/08/02 22:03:59, Garrett ...
9 years, 4 months ago (2011-08-03 19:48:55 UTC) #7
brettw
http://codereview.chromium.org/7549003/diff/6001/base/memory/mru_cache.h File base/memory/mru_cache.h (right): http://codereview.chromium.org/7549003/diff/6001/base/memory/mru_cache.h#newcode36 base/memory/mru_cache.h:36: struct StandardMap { How about calling this MRUCacheStandardMap since ...
9 years, 4 months ago (2011-08-03 20:47:38 UTC) #8
Garrett Casto
Take another look http://codereview.chromium.org/7549003/diff/6001/base/memory/mru_cache.h File base/memory/mru_cache.h (right): http://codereview.chromium.org/7549003/diff/6001/base/memory/mru_cache.h#newcode36 base/memory/mru_cache.h:36: struct StandardMap { On 2011/08/03 20:47:38, ...
9 years, 4 months ago (2011-08-04 00:03:51 UTC) #9
brettw
LGTM, I didn't really look at the phishing code changes. http://codereview.chromium.org/7549003/diff/7004/base/string_piece.h File base/string_piece.h (right): http://codereview.chromium.org/7549003/diff/7004/base/string_piece.h#newcode318 ...
9 years, 4 months ago (2011-08-05 23:00:23 UTC) #10
Garrett Casto
http://codereview.chromium.org/7549003/diff/7004/base/string_piece.h File base/string_piece.h (right): http://codereview.chromium.org/7549003/diff/7004/base/string_piece.h#newcode318 base/string_piece.h:318: #define HASH_WIDE_STRING_PIECE(wsp) \ On 2011/08/05 23:00:23, brettw wrote: > ...
9 years, 4 months ago (2011-08-08 18:48:05 UTC) #11
Brian Ryner
Very nice overall, just some minor comments. http://codereview.chromium.org/7549003/diff/18002/base/memory/mru_cache.h File base/memory/mru_cache.h (right): http://codereview.chromium.org/7549003/diff/18002/base/memory/mru_cache.h#newcode26 base/memory/mru_cache.h:26: #include "base/hash_tables.h" ...
9 years, 4 months ago (2011-08-08 22:08:00 UTC) #12
Garrett Casto
http://codereview.chromium.org/7549003/diff/18002/base/memory/mru_cache.h File base/memory/mru_cache.h (right): http://codereview.chromium.org/7549003/diff/18002/base/memory/mru_cache.h#newcode26 base/memory/mru_cache.h:26: #include "base/hash_tables.h" On 2011/08/08 22:08:00, Brian Ryner wrote: > ...
9 years, 4 months ago (2011-08-08 23:19:51 UTC) #13
Brian Ryner
LGTM
9 years, 4 months ago (2011-08-09 00:13:21 UTC) #14
commit-bot: I haz the power
9 years, 4 months ago (2011-08-09 23:30:47 UTC) #15
Change committed as 96097

Powered by Google App Engine
This is Rietveld 408576698