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

Issue 244893005: Speed-up whitelist check in data_pack.py (Closed)

Created:
6 years, 8 months ago by aurimas (slooooooooow)
Modified:
6 years, 8 months ago
Reviewers:
Nico, newt (away)
CC:
grit-developer_googlegroups.com
Base URL:
https://chromium.googlesource.com/external/grit-i18n.git@master
Visibility:
Public.

Description

Speed-up whitelist check in data_pack.py Previously whitelist was passed as a list causing a slow down when doing 'key in whitelist' check. Converting the list to a set to speed that up. Local testing shows about 4x speedup in running RePack(). BUG=338759 R=thakis@chromium.org Committed: https://code.google.com/p/grit-i18n/source/detail?r=166

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -1 line) Patch
M grit/format/data_pack.py View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 4 (0 generated)
aurimas (slooooooooow)
thakis: PTAL
6 years, 8 months ago (2014-04-21 21:01:24 UTC) #1
Nico
lgtm, thanks
6 years, 8 months ago (2014-04-21 21:28:27 UTC) #2
aurimas (slooooooooow)
Hey Newton, Can you land this for me, please? Thanks! Aurimas
6 years, 8 months ago (2014-04-21 21:29:46 UTC) #3
newt (away)
6 years, 8 months ago (2014-04-21 22:10:13 UTC) #4
Message was sent while issue was closed.
Committed patchset #1 manually as r166 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698