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

Issue 1807673006: Initial LibraryBundleCache implementation. (Closed)

Created:
4 years, 9 months ago by scheglov
Modified:
4 years, 9 months ago
CC:
reviews_dartlang.org
Base URL:
git@github.com:dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Initial LibraryBundleCache implementation. For now the cache is very conservative and considers and change of any source in the closure as a reason to invalidate the bundle. I don't know whether caching Pub packages information would require less conservative implementation or not. R=brianwilkerson@google.com, paulberry@google.com BUG= Committed: https://github.com/dart-lang/sdk/commit/132a13977bc17039cd3b207842aa9cd92b54bc04

Patch Set 1 #

Total comments: 10

Patch Set 2 : Fixes for review comments. #

Patch Set 3 : tweaks #

Unified diffs Side-by-side diffs Delta from patch set Stats (+552 lines, -39 lines) Patch
M pkg/analyzer/lib/src/summary/format.dart View 15 chunks +174 lines, -32 lines 0 comments Download
M pkg/analyzer/lib/src/summary/format.fbs View Binary file 0 comments Download
M pkg/analyzer/lib/src/summary/idl.dart View 3 chunks +36 lines, -7 lines 0 comments Download
A pkg/analyzer/lib/src/summary/incremental_cache.dart View 1 2 1 chunk +269 lines, -0 lines 0 comments Download
A pkg/analyzer/test/src/summary/incremental_cache_test.dart View 1 1 chunk +73 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (1 generated)
scheglov
4 years, 9 months ago (2016-03-16 22:02:27 UTC) #1
Brian Wilkerson
LGTM, but I suspect there are lots of errors I wouldn't recognize as problems. https://codereview.chromium.org/1807673006/diff/1/pkg/analyzer/lib/src/summary/idl.dart ...
4 years, 9 months ago (2016-03-16 22:36:34 UTC) #2
Paul Berry
https://codereview.chromium.org/1807673006/diff/1/pkg/analyzer/lib/src/summary/incremental_cache.dart File pkg/analyzer/lib/src/summary/incremental_cache.dart (right): https://codereview.chromium.org/1807673006/diff/1/pkg/analyzer/lib/src/summary/incremental_cache.dart#newcode45 pkg/analyzer/lib/src/summary/incremental_cache.dart:45: List<int> hash = _getLibraryClosureHash(library.source); This seems wasteful. _getLibraryClosureHash() is ...
4 years, 9 months ago (2016-03-17 18:11:32 UTC) #3
scheglov
PTAL https://codereview.chromium.org/1807673006/diff/1/pkg/analyzer/lib/src/summary/incremental_cache.dart File pkg/analyzer/lib/src/summary/incremental_cache.dart (right): https://codereview.chromium.org/1807673006/diff/1/pkg/analyzer/lib/src/summary/incremental_cache.dart#newcode45 pkg/analyzer/lib/src/summary/incremental_cache.dart:45: List<int> hash = _getLibraryClosureHash(library.source); On 2016/03/17 18:11:32, Paul ...
4 years, 9 months ago (2016-03-17 21:08:14 UTC) #4
scheglov
Committed patchset #3 (id:40001) manually as 132a13977bc17039cd3b207842aa9cd92b54bc04 (presubmit successful).
4 years, 9 months ago (2016-03-18 03:10:58 UTC) #6
scheglov
4 years, 9 months ago (2016-03-18 03:15:01 UTC) #7
Message was sent while issue was closed.
Paul, it seems that the problems in the CL were mostly about concurrency, and
are solved in the latest patch or can be solved later.
So, given that the code is not in production, I'd like to commit it to be able
to work from it forward.

Of course any new problems that you will notice in the CL will be fixed in
following CLs.

Powered by Google App Engine
This is Rietveld 408576698