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

Issue 256563002: Populate the name-to-pseudo map lazily (Closed)

Created:
6 years, 8 months ago by fs
Modified:
6 years, 7 months ago
CC:
blink-reviews, ed+blinkwatch_opera.com, ojan, dglazkov+blink, apavlov+blink_chromium.org, darktears, rune+blink, rwlbuis
Visibility:
Public.

Description

Populate the name-to-pseudo map lazily Sort pseudoTypeMap[] to allow using binary search to look up the name. BUG=365613 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=173317

Patch Set 1 #

Total comments: 5

Patch Set 2 : Drop the HashMap; Binary search only. #

Patch Set 3 : Drop unused include. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+79 lines, -73 lines) Patch
M Source/core/css/CSSSelector.cpp View 1 2 3 chunks +79 lines, -73 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
Daniel Bratell
The list is about 100 items long. It's not impossible that doing a binary search ...
6 years, 8 months ago (2014-04-24 14:57:26 UTC) #1
apavlov
https://codereview.chromium.org/256563002/diff/1/Source/core/css/CSSSelector.cpp File Source/core/css/CSSSelector.cpp (right): https://codereview.chromium.org/256563002/diff/1/Source/core/css/CSSSelector.cpp#newcode374 Source/core/css/CSSSelector.cpp:374: CString cstrName = name.utf8(); This could as well be ...
6 years, 8 months ago (2014-04-24 15:19:18 UTC) #2
fs
https://codereview.chromium.org/256563002/diff/1/Source/core/css/CSSSelector.cpp File Source/core/css/CSSSelector.cpp (right): https://codereview.chromium.org/256563002/diff/1/Source/core/css/CSSSelector.cpp#newcode374 Source/core/css/CSSSelector.cpp:374: CString cstrName = name.utf8(); On 2014/04/24 15:19:18, apavlov wrote: ...
6 years, 8 months ago (2014-04-24 16:01:53 UTC) #3
apavlov
https://codereview.chromium.org/256563002/diff/1/Source/core/css/CSSSelector.cpp File Source/core/css/CSSSelector.cpp (right): https://codereview.chromium.org/256563002/diff/1/Source/core/css/CSSSelector.cpp#newcode374 Source/core/css/CSSSelector.cpp:374: CString cstrName = name.utf8(); On 2014/04/24 16:01:53, fs wrote: ...
6 years, 8 months ago (2014-04-24 16:53:06 UTC) #4
fs
Since esprehn is where the suggestion originated, I guess he should have a say now ...
6 years, 8 months ago (2014-04-25 08:27:14 UTC) #5
esprehn
lgtm, I might binary search all the time like RenderQuote does, but this is fine ...
6 years, 8 months ago (2014-04-25 09:08:03 UTC) #6
fs
https://codereview.chromium.org/256563002/diff/1/Source/core/css/CSSSelector.cpp File Source/core/css/CSSSelector.cpp (right): https://codereview.chromium.org/256563002/diff/1/Source/core/css/CSSSelector.cpp#newcode369 Source/core/css/CSSSelector.cpp:369: NameToPseudoTypeMap::iterator slot = nameToPseudoTypeMap.find(name); On 2014/04/25 09:08:03, esprehn wrote: ...
6 years, 8 months ago (2014-04-25 11:23:32 UTC) #7
fs
On 2014/04/25 11:23:32, fs wrote: > https://codereview.chromium.org/256563002/diff/1/Source/core/css/CSSSelector.cpp > File Source/core/css/CSSSelector.cpp (right): > > https://codereview.chromium.org/256563002/diff/1/Source/core/css/CSSSelector.cpp#newcode369 > ...
6 years, 7 months ago (2014-04-29 07:17:11 UTC) #8
fs
On 2014/04/29 07:17:11, fs wrote: > On 2014/04/25 11:23:32, fs wrote: > > > https://codereview.chromium.org/256563002/diff/1/Source/core/css/CSSSelector.cpp ...
6 years, 7 months ago (2014-05-05 10:32:31 UTC) #9
esprehn
Sorry, still lgtm
6 years, 7 months ago (2014-05-05 15:13:49 UTC) #10
fs
The CQ bit was checked by fs@opera.com
6 years, 7 months ago (2014-05-05 15:40:16 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fs@opera.com/256563002/40001
6 years, 7 months ago (2014-05-05 15:40:22 UTC) #12
commit-bot: I haz the power
6 years, 7 months ago (2014-05-05 16:22:58 UTC) #13
Message was sent while issue was closed.
Change committed as 173317

Powered by Google App Engine
This is Rietveld 408576698