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

Issue 2062203002: Parser: Report use counts once per feature (Closed)

Created:
4 years, 6 months ago by Oleksandr Chekhovskyi
Modified:
4 years, 6 months ago
Reviewers:
Dan Ehrenberg
CC:
v8-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Parser: Report use counts once per feature Reporting use counts by invoking a callback once per occurrence has a large overhead cost in certain situations, for example when it needs to be dispatched to a different thread (which is the case for Web Workers). Parsing large scripts can produce a lot of occurrences (strict/sloppy mode once per function). Chromium (the only known user of UseCounters so far) does not actually care about number of occurrences, but simply whether they happened at least once. This commit changes behavior to report features at most once, which dramatically improves performance for impacted use cases, and should not affect the only known real world usage. R=littledan@chromium.org BUG=chromium:614775 Committed: https://crrev.com/2f6be682aca10c8d5c93599f8fa0e50b6359f016 Cr-Commit-Position: refs/heads/master@{#36979}

Patch Set 1 #

Patch Set 2 : Improve commit message #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -4 lines) Patch
M AUTHORS View 1 chunk +1 line, -0 lines 0 comments Download
M src/parsing/parser.cc View 1 chunk +1 line, -1 line 0 comments Download
M test/cctest/test-parsing.cc View 1 chunk +1 line, -3 lines 0 comments Download

Messages

Total messages: 12 (4 generated)
Dan Ehrenberg
Could you explain the motivation for the change in the commit message?
4 years, 6 months ago (2016-06-14 19:56:52 UTC) #1
Oleksandr Chekhovskyi
On 2016/06/14 19:56:52, Dan Ehrenberg wrote: > Could you explain the motivation for the change ...
4 years, 6 months ago (2016-06-14 20:22:21 UTC) #2
Dan Ehrenberg
On 2016/06/14 at 20:22:21, oleksandr.chekhovskyi wrote: > On 2016/06/14 19:56:52, Dan Ehrenberg wrote: > > ...
4 years, 6 months ago (2016-06-14 20:25:55 UTC) #3
Oleksandr Chekhovskyi
On 2016/06/14 20:25:55, Dan Ehrenberg wrote: > On 2016/06/14 at 20:22:21, oleksandr.chekhovskyi wrote: > > ...
4 years, 6 months ago (2016-06-14 20:31:15 UTC) #5
Dan Ehrenberg
lgtm Looks great, thanks!
4 years, 6 months ago (2016-06-14 20:46:23 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2062203002/20001
4 years, 6 months ago (2016-06-14 20:46:37 UTC) #8
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 6 months ago (2016-06-14 21:39:47 UTC) #10
commit-bot: I haz the power
4 years, 6 months ago (2016-06-14 21:41:47 UTC) #12
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/2f6be682aca10c8d5c93599f8fa0e50b6359f016
Cr-Commit-Position: refs/heads/master@{#36979}

Powered by Google App Engine
This is Rietveld 408576698