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

Issue 10693174: Support references in serialization. (Closed)

Created:
8 years, 5 months ago by Anton Muhin
Modified:
8 years, 5 months ago
Reviewers:
vsm, podivilov, sammccall
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Patch Set 1 #

Total comments: 12

Patch Set 2 : #

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+42 lines, -23 lines) Patch
M client/dart.js View 1 2 1 chunk +42 lines, -23 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Anton Muhin
8 years, 5 months ago (2012-07-13 08:35:51 UTC) #1
podivilov
lgtm https://chromiumcodereview.appspot.com/10693174/diff/1/client/dart.js File client/dart.js (right): https://chromiumcodereview.appspot.com/10693174/diff/1/client/dart.js#newcode62 client/dart.js:62: function do(message) { doSerialize maybe? https://chromiumcodereview.appspot.com/10693174/diff/1/client/dart.js#newcode65 client/dart.js:65: } ...
8 years, 5 months ago (2012-07-13 11:07:55 UTC) #2
vsm
lgtm https://chromiumcodereview.appspot.com/10693174/diff/1/client/dart.js File client/dart.js (right): https://chromiumcodereview.appspot.com/10693174/diff/1/client/dart.js#newcode53 client/dart.js:53: if (visited[i] === obj) { An expando on ...
8 years, 5 months ago (2012-07-13 14:10:40 UTC) #3
Anton Muhin
https://chromiumcodereview.appspot.com/10693174/diff/1/client/dart.js File client/dart.js (right): https://chromiumcodereview.appspot.com/10693174/diff/1/client/dart.js#newcode53 client/dart.js:53: if (visited[i] === obj) { On 2012/07/13 14:10:40, vsm ...
8 years, 5 months ago (2012-07-13 15:30:58 UTC) #4
vsm
still lgtm https://chromiumcodereview.appspot.com/10693174/diff/1/client/dart.js File client/dart.js (right): https://chromiumcodereview.appspot.com/10693174/diff/1/client/dart.js#newcode53 client/dart.js:53: if (visited[i] === obj) { You may ...
8 years, 5 months ago (2012-07-13 15:39:01 UTC) #5
Anton Muhin
8 years, 5 months ago (2012-07-13 15:43:28 UTC) #6
Thanks a lot for all the comments, I am submitting it now.  I'll address all
further comments in a separate cl.

https://chromiumcodereview.appspot.com/10693174/diff/1/client/dart.js
File client/dart.js (right):

https://chromiumcodereview.appspot.com/10693174/diff/1/client/dart.js#newcode53
client/dart.js:53: if (visited[i] === obj) {
Good idea, done.

On 2012/07/13 15:39:01, vsm wrote:
> You may be right.  From what I understand, deleting turns the object to a
> dictionary.  That may be worse than the linear search here depending on usage.

> How about a comment on your concern?
> 
> On 2012/07/13 15:30:58, Anton Mukhin wrote:
> > On 2012/07/13 14:10:40, vsm wrote:
> > > An expando on obj to avoid the linear search?
> > 
> > That's probably stupid, but for some reason I don't want to add/remove
expando
> > on objects not to break various JS optimizations.  thoughts?
>

Powered by Google App Engine
This is Rietveld 408576698