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

Issue 393573002: Different SPDY Hpack constant table for startup time and footprint (60KB). (Closed)

Created:
6 years, 5 months ago by Daniel Bratell
Modified:
6 years, 5 months ago
Reviewers:
Johnny, Ryan Hamilton
CC:
chromium-reviews, cbentzel+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Different SPDY Hpack constant table for startup time and footprint (60KB). The hpack constant table was 40-60 KB (gcc: 40 KB, clang: 60KB), for storing 2 KB of data. Not optimal. By making it an ordinary static data table we save 60 KB with clang: Total change: -64153 bytes ========================== 1 added, totalling +2056 bytes across 1 sources 1 removed, totalling -66215 bytes across 1 sources 1 grown, for a net change of +14 bytes (367 bytes before, 381 bytes after) across 1 sources 1 shrunk, for a net change of -8 bytes (10504 bytes before, 10496 bytes after) across 1 sources and save 40 KB with gcc: Total change: -41382 bytes ========================== 1 added, totalling +2056 bytes across 1 sources 2 removed, totalling -43597 bytes across 2 sources 1 grown, for a net change of +167 bytes (341 bytes before, 508 bytes after) across 1 sources 1 shrunk, for a net change of -8 bytes (10576 bytes before, 10568 bytes after) across 1 sources BUG=394269 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=284698

Patch Set 1 : HPack: shrink table #

Patch Set 2 : 97% smaller hpack constant table. Now with more comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+569 lines, -278 lines) Patch
M net/spdy/hpack_constants.cc View 1 3 chunks +263 lines, -278 lines 0 comments Download
A net/tools/build_hpack_constants.py View 1 1 chunk +306 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
Daniel Bratell
Please take a look at this implementation change for the hpack constant table. I've run ...
6 years, 5 months ago (2014-07-16 09:37:53 UTC) #1
Ryan Hamilton
On 2014/07/16 09:37:53, Daniel Bratell wrote: > Please take a look at this implementation change ...
6 years, 5 months ago (2014-07-18 15:55:21 UTC) #2
Johnny
The internal version of this file uses '0b' literal syntax to express these constants. Using ...
6 years, 5 months ago (2014-07-21 15:37:28 UTC) #3
Daniel Bratell
On 2014/07/21 15:37:28, Johnny wrote: > The internal version of this file uses '0b' literal ...
6 years, 5 months ago (2014-07-21 17:08:33 UTC) #4
Daniel Bratell
On 2014/07/21 17:08:33, Daniel Bratell wrote: > On 2014/07/21 15:37:28, Johnny wrote: > > The ...
6 years, 5 months ago (2014-07-21 17:27:16 UTC) #5
Johnny
> Ok, I see what you write: "since 0b literals are a clearer expression", but ...
6 years, 5 months ago (2014-07-21 19:41:11 UTC) #6
Daniel Bratell
On 2014/07/21 19:41:11, Johnny wrote: > > Ok, I see what you write: "since 0b ...
6 years, 5 months ago (2014-07-22 06:23:33 UTC) #7
Daniel Bratell
Pushed a new version that shows the binary strings.
6 years, 5 months ago (2014-07-22 09:49:56 UTC) #8
Johnny
Thanks, the comments improve things. Bringing in BOOST_BINARY would, as you say, be non-trivial. This ...
6 years, 5 months ago (2014-07-22 13:31:49 UTC) #9
Daniel Bratell
On 2014/07/22 13:31:49, Johnny wrote: > Thanks, the comments improve things. Bringing in BOOST_BINARY would, ...
6 years, 5 months ago (2014-07-22 14:21:48 UTC) #10
Daniel Bratell
The CQ bit was checked by bratell@opera.com
6 years, 5 months ago (2014-07-22 14:21:53 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bratell@opera.com/393573002/60001
6 years, 5 months ago (2014-07-22 14:22:43 UTC) #12
commit-bot: I haz the power
6 years, 5 months ago (2014-07-22 16:21:53 UTC) #13
Message was sent while issue was closed.
Change committed as 284698

Powered by Google App Engine
This is Rietveld 408576698