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

Issue 196413006: [MemUsage][BinarySize] More perfect hashes for CSS strings. (Closed)

Created:
6 years, 9 months ago by Daniel Bratell
Modified:
6 years, 9 months ago
Reviewers:
rune, eseidel
CC:
blink-reviews, scottmg
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

[MemUsage][BinarySize] More perfect hashes for CSS strings. gperf generates some "perfect" hashes for CSS properties and CSS values. Those are not very compact but can be more compact if gperf is asked to try harder. This will cost 1 s build time and reduce binary size by about 12 KB. The flags changed are: '-m 50' - Try 50 times more initial values to the search algorithm. This will make the call 50 times slower but for the current input size that is no problem. Removal of ‘-s 2’ - -s 2 told gperf to generate a twice as large data table to make it easier (faster) to find a solution. Also '-D' moved around but was there both before and after so no addition or removal. In the longer run we should move away from gperf to a better algorithm (they exist at the research level but not as easily installed programs) BUG=351774 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=169111

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -4 lines) Patch
M Source/build/scripts/make_css_property_names.py View 2 chunks +5 lines, -3 lines 0 comments Download
M Source/build/scripts/make_css_value_keywords.py View 1 chunk +3 lines, -1 line 0 comments Download

Messages

Total messages: 16 (0 generated)
Daniel Bratell
scottmg, I actually have no idea who to ask to change these python scripts, but ...
6 years, 9 months ago (2014-03-12 17:56:42 UTC) #1
scottmg
Do we know if the duplicate hashes will affect runtime performance at all? (+eseidel, I ...
6 years, 9 months ago (2014-03-12 18:10:01 UTC) #2
eseidel
Personally I'm interested in us moving off of these hashes eventually, and using AtomicString for ...
6 years, 9 months ago (2014-03-12 18:21:28 UTC) #3
eseidel
lgtm I'm happy to see us experiment here. Please update your description to detail the ...
6 years, 9 months ago (2014-03-12 22:00:34 UTC) #4
Daniel Bratell
On 2014/03/12 22:00:34, eseidel wrote: > lgtm > > I'm happy to see us experiment ...
6 years, 9 months ago (2014-03-12 22:53:08 UTC) #5
Daniel Bratell
The CQ bit was checked by bratell@opera.com
6 years, 9 months ago (2014-03-12 22:59:53 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bratell@opera.com/196413006/1
6 years, 9 months ago (2014-03-12 23:00:03 UTC) #7
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-12 23:38:36 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on mac_blink_rel
6 years, 9 months ago (2014-03-12 23:38:37 UTC) #9
Daniel Bratell
The CQ bit was checked by bratell@opera.com
6 years, 9 months ago (2014-03-13 07:14:00 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bratell@opera.com/196413006/1
6 years, 9 months ago (2014-03-13 07:14:08 UTC) #11
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-13 08:23:21 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on linux_blink
6 years, 9 months ago (2014-03-13 08:23:21 UTC) #13
Daniel Bratell
The CQ bit was checked by bratell@opera.com
6 years, 9 months ago (2014-03-13 08:39:19 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bratell@opera.com/196413006/1
6 years, 9 months ago (2014-03-13 08:39:26 UTC) #15
commit-bot: I haz the power
6 years, 9 months ago (2014-03-13 10:06:49 UTC) #16
Message was sent while issue was closed.
Change committed as 169111

Powered by Google App Engine
This is Rietveld 408576698