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

Issue 7604012: Remove the length field from the index entries in data pack files. (Closed)

Created:
9 years, 4 months ago by tony
Modified:
9 years, 4 months ago
Reviewers:
Evan Martin
CC:
chromium-reviews, pam+watch_chromium.org, Paweł Hajdan Jr.
Visibility:
Public.

Description

Remove the length field from the index entries in data pack files. After the last index entry, we put an extra entry (id of 0, offset pointing to where the next entry would start) so we can compute the size of the last index entry. This saves 4 bytes per item in data pack files, which is about 10k per locale pak file. When compressed, this saves about 237k. BUG=76285 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=96415

Patch Set 1 #

Total comments: 1

Patch Set 2 : new version #

Patch Set 3 : fix write #

Unified diffs Side-by-side diffs Delta from patch set Stats (+59 lines, -33 lines) Patch
M chrome/browser/themes/browser_theme_pack.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/themes/browser_theme_pack_unittest.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M tools/data_pack/data_pack.py View 1 3 chunks +14 lines, -7 lines 0 comments Download
M tools/grit/grit/format/data_pack.py View 1 2 chunks +7 lines, -4 lines 0 comments Download
M tools/grit/grit/format/data_pack_unittest.py View 1 1 chunk +8 lines, -4 lines 0 comments Download
M ui/base/resource/data_pack.cc View 1 2 7 chunks +29 lines, -17 lines 0 comments Download
M ui/base/test/data/data_pack_unittest/sample.pak View 1 0 chunks +-1 lines, --1 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
tony
The test failure is from not being able to apply the binary diff to sample.pak.
9 years, 4 months ago (2011-08-10 16:37:42 UTC) #1
Evan Martin
(random other review comment I wrote before I talked to you in person) http://codereview.chromium.org/7604012/diff/1/ui/base/resource/data_pack.cc File ...
9 years, 4 months ago (2011-08-10 17:28:56 UTC) #2
tony
New version up with an extra entry so we can identify cases where the file ...
9 years, 4 months ago (2011-08-10 18:41:48 UTC) #3
Evan Martin
9 years, 4 months ago (2011-08-10 18:52:49 UTC) #4
LGTM

Powered by Google App Engine
This is Rietveld 408576698