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

Issue 133813008: Avoid printing the full token stream and doing line/column position calculations when extracting th… (Closed)

Created:
6 years, 10 months ago by rmacnak
Modified:
6 years, 10 months ago
Reviewers:
hausner, Ivan Posva
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Visibility:
Public.

Description

Avoid printing the full token stream and doing line/column position calculations when extracting the source of a function where we don't have the original source. Brings mirrors_reader_test from 2 minutes to 11 seconds on the standalone VM. R=iposva@google.com Committed: https://code.google.com/p/dart/source/detail?r=32461

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : unmark standalone and content shell as slow #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -6 lines) Patch
M runtime/lib/mirrors.cc View 1 1 chunk +6 lines, -0 lines 1 comment Download
M runtime/vm/object.h View 1 chunk +1 line, -0 lines 0 comments Download
M runtime/vm/object.cc View 1 2 chunks +7 lines, -3 lines 0 comments Download
M tests/lib/lib.status View 1 2 1 chunk +0 lines, -3 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
rmacnak
6 years, 10 months ago (2014-02-07 23:45:08 UTC) #1
rmacnak
6 years, 10 months ago (2014-02-08 01:00:10 UTC) #2
Ivan Posva
LGTM Please remove the SLOW marker on the relevant tests. -Ivan
6 years, 10 months ago (2014-02-08 01:09:17 UTC) #3
rmacnak
Committed patchset #3 manually as r32461 (presubmit successful).
6 years, 10 months ago (2014-02-08 01:18:23 UTC) #4
hausner
LGTM w/comment https://codereview.chromium.org/133813008/diff/80001/runtime/lib/mirrors.cc File runtime/lib/mirrors.cc (right): https://codereview.chromium.org/133813008/diff/80001/runtime/lib/mirrors.cc#newcode2050 runtime/lib/mirrors.cc:2050: // doing expensive position calculations. Maybe mention ...
6 years, 10 months ago (2014-02-10 16:49:52 UTC) #5
rmacnak
6 years, 10 months ago (2014-02-10 23:42:17 UTC) #6
Message was sent while issue was closed.
On 2014/02/10 16:49:52, hausner wrote:
> LGTM w/comment
> 
> https://codereview.chromium.org/133813008/diff/80001/runtime/lib/mirrors.cc
> File runtime/lib/mirrors.cc (right):
> 
>
https://codereview.chromium.org/133813008/diff/80001/runtime/lib/mirrors.cc#n...
> runtime/lib/mirrors.cc:2050: // doing expensive position calculations.
> Maybe mention in the comment why it makes no sense to do the calculation
below:
> column positions are not available.
> 
> Maybe this faster path is good enough even when we have sources? What would we
> lose?

We lose user formatting and comments. We can do better on this path as well by
doing token-position -> source-offset-position instead of token-position ->
line/column-position -> source-offset-position.

Powered by Google App Engine
This is Rietveld 408576698