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

Issue 1552793002: CompositorWorker: Use a linear search in compositorMutablePropertyForName. (Closed)

Created:
4 years, 11 months ago by jbroman
Modified:
4 years, 11 months ago
Reviewers:
Ian Vollick, esprehn
CC:
blink-reviews, blink-reviews-dom_chromium.org, chromium-reviews, dglazkov+blink, eae+blinkwatch, rwlbuis, sof
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

CompositorWorker: Use a linear search in compositorMutablePropertyForName. It doesn't incur any allocations, is simple, and handles 16-bit strings well. Since the number of supported properties is so small, a linear search is quite fast. BUG=531577 Committed: https://crrev.com/ee750771ee64d8171670d6d6d525e71378bd2adb Cr-Commit-Position: refs/heads/master@{#367170}

Patch Set 1 #

Patch Set 2 : case-insensitive #

Patch Set 3 : add test which creates a 16-bit string for a valid property #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -26 lines) Patch
M third_party/WebKit/LayoutTests/virtual/threaded/fast/compositorworker/compositor-proxy-supports.html View 1 2 1 chunk +5 lines, -0 lines 1 comment Download
M third_party/WebKit/Source/core/dom/CompositorProxy.cpp View 1 1 chunk +10 lines, -26 lines 1 comment Download

Messages

Total messages: 20 (7 generated)
jbroman
The linear search we discussed. While here, I made the mapping const (so it can ...
4 years, 11 months ago (2015-12-30 16:38:27 UTC) #2
Ian Vollick
On 2015/12/30 16:38:27, jbroman wrote: > The linear search we discussed. While here, I made ...
4 years, 11 months ago (2015-12-30 16:50:15 UTC) #3
jbroman
On 2015/12/30 at 16:50:15, vollick wrote: > On 2015/12/30 16:38:27, jbroman wrote: > > The ...
4 years, 11 months ago (2015-12-30 17:03:13 UTC) #4
Ian Vollick
lgtm
4 years, 11 months ago (2015-12-30 17:03:38 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1552793002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1552793002/40001
4 years, 11 months ago (2015-12-30 17:04:28 UTC) #7
esprehn
I'm pretty sure this is a JS bindings bug with the string cache, we should ...
4 years, 11 months ago (2015-12-30 18:31:30 UTC) #9
jbroman
On 2015/12/30 at 18:31:30, esprehn wrote: > I'm pretty sure this is a JS bindings ...
4 years, 11 months ago (2015-12-30 18:38:15 UTC) #11
jbroman
On 2015/12/30 at 18:38:15, jbroman wrote: > That, or using StringUTF8Adaptor (which would be more ...
4 years, 11 months ago (2015-12-30 18:39:36 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1552793002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1552793002/40001
4 years, 11 months ago (2015-12-30 19:12:45 UTC) #14
jbroman
It sounds like you didn't object to this CL in particular, so resuming CQ.
4 years, 11 months ago (2015-12-30 19:13:47 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1552793002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1552793002/40001
4 years, 11 months ago (2015-12-30 19:14:41 UTC) #17
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 11 months ago (2015-12-30 19:16:39 UTC) #18
commit-bot: I haz the power
4 years, 11 months ago (2015-12-30 19:17:35 UTC) #20
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/ee750771ee64d8171670d6d6d525e71378bd2adb
Cr-Commit-Position: refs/heads/master@{#367170}

Powered by Google App Engine
This is Rietveld 408576698