Generate a series of nested switch statements to parse CSSPrimitiveValue units.
First, read in a text file of strings to types, generate a Trie, then
use the Trie to generate the nested switch statements.
Generated CSSPrimitiveValueUnitTrie.cpp:
http://pastebin.com/EMJU9eNp
Using the instructions here:
https://chromium.googlesource.com/chromium/src/+/master/docs/linux_profiling.md
when running the "slow" part of the inline-transform
benchmark linked in http://crbug.com/605792,
it looks like this change halves the time spent in
blink::CSSTokenizer::consumeNumericToken, taking 10% off
CSSParserImpl::parseValue.
BUG=606695
Description was changed from ========== Generate a series of nested switch statements to parse CSSPrimitiveValue ...
4 years, 7 months ago
(2016-05-03 07:50:54 UTC)
#3
Description was changed from
==========
Generate a series of nested switch statements to parse CSSPrimitiveValue units.
First, read in a text file of strings to types, generate a Trie, then
use the Trie to generate the nested switch statements.
BUG=606695
==========
to
==========
Generate a series of nested switch statements to parse CSSPrimitiveValue units.
First, read in a text file of strings to types, generate a Trie, then
use the Trie to generate the nested switch statements.
BUG=606695
==========
Description was changed from ========== Generate a series of nested switch statements to parse CSSPrimitiveValue ...
4 years, 7 months ago
(2016-05-09 03:59:25 UTC)
#5
Description was changed from
==========
Generate a series of nested switch statements to parse CSSPrimitiveValue units.
First, read in a text file of strings to types, generate a Trie, then
use the Trie to generate the nested switch statements.
BUG=606695
==========
to
==========
Generate a series of nested switch statements to parse CSSPrimitiveValue units.
First, read in a text file of strings to types, generate a Trie, then
use the Trie to generate the nested switch statements.
Generated CSSPrimitiveValueUnitTrie.cpp:
http://pastebin.com/U1x3HQYF
Diff between HTMLElementLookupTrie.cpp before and after:
http://www.diff-online.com/view/57300b111abe1
BUG=606695
==========
meade_UTC10
Description was changed from ========== Generate a series of nested switch statements to parse CSSPrimitiveValue ...
4 years, 7 months ago
(2016-05-09 04:13:57 UTC)
#6
Description was changed from
==========
Generate a series of nested switch statements to parse CSSPrimitiveValue units.
First, read in a text file of strings to types, generate a Trie, then
use the Trie to generate the nested switch statements.
Generated CSSPrimitiveValueUnitTrie.cpp:
http://pastebin.com/U1x3HQYF
Diff between HTMLElementLookupTrie.cpp before and after:
http://www.diff-online.com/view/57300b111abe1
BUG=606695
==========
to
==========
Generate a series of nested switch statements to parse CSSPrimitiveValue units.
First, read in a text file of strings to types, generate a Trie, then
use the Trie to generate the nested switch statements.
Generated CSSPrimitiveValueUnitTrie.cpp:
http://pastebin.com/EMJU9eNp
Diff between HTMLElementLookupTrie.cpp before and after:
http://www.diff-online.com/view/57300e3ee815f
BUG=606695
==========
meade_UTC10
Description was changed from ========== Generate a series of nested switch statements to parse CSSPrimitiveValue ...
4 years, 7 months ago
(2016-05-11 05:59:41 UTC)
#7
Description was changed from
==========
Generate a series of nested switch statements to parse CSSPrimitiveValue units.
First, read in a text file of strings to types, generate a Trie, then
use the Trie to generate the nested switch statements.
Generated CSSPrimitiveValueUnitTrie.cpp:
http://pastebin.com/EMJU9eNp
Diff between HTMLElementLookupTrie.cpp before and after:
http://www.diff-online.com/view/57300e3ee815f
BUG=606695
==========
to
==========
Generate a series of nested switch statements to parse CSSPrimitiveValue units.
First, read in a text file of strings to types, generate a Trie, then
use the Trie to generate the nested switch statements.
Generated CSSPrimitiveValueUnitTrie.cpp:
http://pastebin.com/EMJU9eNp
Diff between HTMLElementLookupTrie.cpp before and after:
http://www.diff-online.com/view/57300e3ee815f
Using the instructions here:
https://chromium.googlesource.com/chromium/src/+/master/docs/linux_profiling.md
when running the "slow" part of the inline-transform
benchmark linked in http://crbug.com/605792,
it looks like this change halves the time spent in
blink::CSSTokenizer::consumeNumericToken, taking 10% off
CSSParserImpl::parseValue.
BUG=606695
==========
Timothy Loh
As discussed, let's split this up into a patch for generalizing the switch logic and ...
4 years, 7 months ago
(2016-05-12 07:03:15 UTC)
#8
Description was changed from ========== Generate a series of nested switch statements to parse CSSPrimitiveValue ...
4 years, 7 months ago
(2016-05-13 04:33:11 UTC)
#11
Description was changed from
==========
Generate a series of nested switch statements to parse CSSPrimitiveValue units.
First, read in a text file of strings to types, generate a Trie, then
use the Trie to generate the nested switch statements.
Generated CSSPrimitiveValueUnitTrie.cpp:
http://pastebin.com/EMJU9eNp
Diff between HTMLElementLookupTrie.cpp before and after:
http://www.diff-online.com/view/57300e3ee815f
Using the instructions here:
https://chromium.googlesource.com/chromium/src/+/master/docs/linux_profiling.md
when running the "slow" part of the inline-transform
benchmark linked in http://crbug.com/605792,
it looks like this change halves the time spent in
blink::CSSTokenizer::consumeNumericToken, taking 10% off
CSSParserImpl::parseValue.
BUG=606695
==========
to
==========
Generate a series of nested switch statements to parse CSSPrimitiveValue units.
First, read in a text file of strings to types, generate a Trie, then
use the Trie to generate the nested switch statements.
Generated CSSPrimitiveValueUnitTrie.cpp:
http://pastebin.com/EMJU9eNp
Using the instructions here:
https://chromium.googlesource.com/chromium/src/+/master/docs/linux_profiling.md
when running the "slow" part of the inline-transform
benchmark linked in http://crbug.com/605792,
it looks like this change halves the time spent in
blink::CSSTokenizer::consumeNumericToken, taking 10% off
CSSParserImpl::parseValue.
BUG=606695
==========
Timothy Loh
lgtm with all the default_value stuff removed, the patch rebased, and an updated generated file ...
4 years, 7 months ago
(2016-05-13 06:54:48 UTC)
#12
Issue 1938343002: Generate a series of nested switch statements to parse CSSPrimitiveValue units.
(Closed)
Created 4 years, 7 months ago by meade_UTC10
Modified 4 years, 6 months ago
Reviewers: Timothy Loh
Base URL: https://chromium.googlesource.com/chromium/src.git@master
Comments: 31