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

Issue 1075773002: Use file/offset/kind triplet as elements id. (Closed)

Created:
5 years, 8 months ago by scheglov
Modified:
5 years, 8 months ago
Reviewers:
Brian Wilkerson
CC:
reviews_dartlang.org
Target Ref:
refs/remotes/git-svn
Visibility:
Public.

Description

Use file/offset/kind triplet as elements id. It saves about 20 MB for each ToDo MVC sample. R=brianwilkerson@google.com BUG= Committed: https://code.google.com/p/dart/source/detail?r=45011

Patch Set 1 #

Total comments: 15

Patch Set 2 : Tweaks for review comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+592 lines, -450 lines) Patch
M pkg/analysis_server/lib/src/services/index/store/codec.dart View 1 3 chunks +75 lines, -161 lines 0 comments Download
M pkg/analysis_server/lib/src/services/index/store/memory_node_manager.dart View 3 chunks +11 lines, -20 lines 0 comments Download
M pkg/analysis_server/lib/src/services/index/store/split_store.dart View 12 chunks +113 lines, -65 lines 0 comments Download
M pkg/analysis_server/test/abstract_context.dart View 1 chunk +2 lines, -2 lines 0 comments Download
M pkg/analysis_server/test/abstract_single_unit.dart View 1 chunk +2 lines, -2 lines 0 comments Download
M pkg/analysis_server/test/services/index/store/codec_test.dart View 1 3 chunks +265 lines, -126 lines 0 comments Download
M pkg/analysis_server/test/services/index/store/split_store_test.dart View 25 chunks +88 lines, -74 lines 0 comments Download
M pkg/analyzer/lib/src/generated/element.dart View 4 chunks +36 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
scheglov
5 years, 8 months ago (2015-04-09 05:22:15 UTC) #1
Brian Wilkerson
LGTM https://codereview.chromium.org/1075773002/diff/1/pkg/analysis_server/lib/src/services/index/store/codec.dart File pkg/analysis_server/lib/src/services/index/store/codec.dart (right): https://codereview.chromium.org/1075773002/diff/1/pkg/analysis_server/lib/src/services/index/store/codec.dart#newcode86 pkg/analysis_server/lib/src/services/index/store/codec.dart:86: LibraryElement libraryElement = context.getLibraryElement(libSource); We need to handle ...
5 years, 8 months ago (2015-04-09 14:06:25 UTC) #2
scheglov
https://codereview.chromium.org/1075773002/diff/1/pkg/analysis_server/lib/src/services/index/store/codec.dart File pkg/analysis_server/lib/src/services/index/store/codec.dart (right): https://codereview.chromium.org/1075773002/diff/1/pkg/analysis_server/lib/src/services/index/store/codec.dart#newcode86 pkg/analysis_server/lib/src/services/index/store/codec.dart:86: LibraryElement libraryElement = context.getLibraryElement(libSource); On 2015/04/09 14:06:25, Brian Wilkerson ...
5 years, 8 months ago (2015-04-09 15:11:57 UTC) #3
scheglov
Committed patchset #2 (id:20001) manually as 45011 (presubmit successful).
5 years, 8 months ago (2015-04-09 15:21:23 UTC) #4
Brian Wilkerson
https://codereview.chromium.org/1075773002/diff/1/pkg/analysis_server/lib/src/services/index/store/codec.dart File pkg/analysis_server/lib/src/services/index/store/codec.dart (right): https://codereview.chromium.org/1075773002/diff/1/pkg/analysis_server/lib/src/services/index/store/codec.dart#newcode123 pkg/analysis_server/lib/src/services/index/store/codec.dart:123: int encode1(Element element) { > Clients don't need to ...
5 years, 8 months ago (2015-04-09 15:26:31 UTC) #5
scheglov
5 years, 8 months ago (2015-04-09 15:51:08 UTC) #6
Message was sent while issue was closed.
https://codereview.chromium.org/1075773002/diff/1/pkg/analysis_server/lib/src...
File pkg/analysis_server/lib/src/services/index/store/codec.dart (right):

https://codereview.chromium.org/1075773002/diff/1/pkg/analysis_server/lib/src...
pkg/analysis_server/lib/src/services/index/store/codec.dart:123: int
encode1(Element element) {
On 2015/04/09 15:26:30, Brian Wilkerson wrote:
> > Clients don't need to know exact meaning of these ids.
> 
> I didn't suggest it for clients, I suggested it for developers/maintainers.
> Integers just don't provide any semantic information when trying to understand
> the code.

I will add comments for these methods.

Powered by Google App Engine
This is Rietveld 408576698