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

Issue 1161963002: Shrinking CSSParserToken for lower CSS parsing memory usage. (Closed)

Created:
5 years, 6 months ago by Daniel Bratell
Modified:
5 years, 6 months ago
Reviewers:
Timothy Loh
CC:
blink-reviews, dglazkov+blink, rwlbuis, apavlov+blink_chromium.org, blink-reviews-css, darktears
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Shrinking CSSParserToken for lower CSS parsing memory usage. For 64-bit this shrinks CSSParserToken from 32 to 24 bytes. For 32-bit this shrinks CSSParserToken from 24 to 20 bytes. On typical sites (gmail, arstechnica) there are 300 KB stylesheets which makes us preallocate room for 100,000 CSSParserTokens. Allocation savings will then be 800 KB on 64-bit and 400 KB on 32-bit. It does not cause any noticable performance change in any direction on a workstation. Memory starved devices *might* benefit. R=timloh@chromium.org BUG=490185 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=196134

Patch Set 1 : #

Total comments: 1

Patch Set 2 : Removed unused union members. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -7 lines) Patch
M Source/core/css/parser/CSSParserToken.h View 1 2 chunks +18 lines, -3 lines 0 comments Download
M Source/core/css/parser/CSSParserToken.cpp View 3 chunks +4 lines, -4 lines 0 comments Download
M Source/core/css/parser/CSSParserValues.h View 2 chunks +8 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (3 generated)
Daniel Bratell
timloh, this saves 1+ MB of memory usage during loading of gmail. I really tried ...
5 years, 6 months ago (2015-05-28 13:14:45 UTC) #2
Timothy Loh
lgtm dstockwell: We have perf tests now that will notice changes to parsing performance, right? ...
5 years, 6 months ago (2015-05-29 03:27:46 UTC) #3
dstockwell
On 2015/05/29 at 03:27:46, timloh wrote: > lgtm > > dstockwell: We have perf tests ...
5 years, 6 months ago (2015-05-29 06:25:33 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1161963002/40001
5 years, 6 months ago (2015-05-29 11:21:09 UTC) #7
commit-bot: I haz the power
5 years, 6 months ago (2015-05-29 11:24:44 UTC) #8
Message was sent while issue was closed.
Committed patchset #2 (id:40001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=196134

Powered by Google App Engine
This is Rietveld 408576698