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

Issue 2540403002: Move running tasks for fixed time to the scheduler. (Closed)

Created:
4 years ago by scheglov
Modified:
4 years ago
CC:
reviews_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Move running tasks for fixed time to the scheduler. This improves recovery time for change/undo from 300 ms to 200 ms for analyzer + analysis_server + front_end. _FilesReferencingNameTask does not degrade in any noticeble way, it is still about 0-1 ms for this code base, as compared to 60 ms without fixing runing time in the task or the scheduler. R=brianwilkerson@google.com, paulberry@google.com BUG= Committed: https://github.com/dart-lang/sdk/commit/53b04631bc2f5572e194138fca44aa7c2c617c98

Patch Set 1 #

Total comments: 2

Patch Set 2 : Extract constants and move comments. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+46 lines, -36 lines) Patch
M pkg/analyzer/lib/src/dart/analysis/driver.dart View 1 3 chunks +46 lines, -36 lines 1 comment Download

Messages

Total messages: 8 (1 generated)
scheglov
4 years ago (2016-12-01 02:24:54 UTC) #1
Paul Berry
lgtm
4 years ago (2016-12-01 13:44:13 UTC) #2
Brian Wilkerson
lgtm https://codereview.chromium.org/2540403002/diff/1/pkg/analyzer/lib/src/dart/analysis/driver.dart File pkg/analyzer/lib/src/dart/analysis/driver.dart (right): https://codereview.chromium.org/2540403002/diff/1/pkg/analyzer/lib/src/dart/analysis/driver.dart#newcode996 pkg/analyzer/lib/src/dart/analysis/driver.dart:996: if (timer.elapsedMilliseconds > 2) { I think it ...
4 years ago (2016-12-01 14:36:38 UTC) #3
scheglov
PTAL https://codereview.chromium.org/2540403002/diff/1/pkg/analyzer/lib/src/dart/analysis/driver.dart File pkg/analyzer/lib/src/dart/analysis/driver.dart (right): https://codereview.chromium.org/2540403002/diff/1/pkg/analyzer/lib/src/dart/analysis/driver.dart#newcode996 pkg/analyzer/lib/src/dart/analysis/driver.dart:996: if (timer.elapsedMilliseconds > 2) { On 2016/12/01 14:36:38, ...
4 years ago (2016-12-01 16:55:06 UTC) #4
Paul Berry
lgtm
4 years ago (2016-12-01 17:10:51 UTC) #5
Brian Wilkerson
lgtm, thanks! https://codereview.chromium.org/2540403002/diff/20001/pkg/analyzer/lib/src/dart/analysis/driver.dart File pkg/analyzer/lib/src/dart/analysis/driver.dart (right): https://codereview.chromium.org/2540403002/diff/20001/pkg/analyzer/lib/src/dart/analysis/driver.dart#newcode924 pkg/analyzer/lib/src/dart/analysis/driver.dart:924: * Relinquishing execution flow and running event ...
4 years ago (2016-12-01 17:12:28 UTC) #6
scheglov
4 years ago (2016-12-01 17:15:44 UTC) #8
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
53b04631bc2f5572e194138fca44aa7c2c617c98 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698