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

Issue 123523002: Minor Object.observe optimizations (Closed)

Created:
6 years, 11 months ago by rafaelw
Modified:
6 years, 11 months ago
Reviewers:
rossberg, adamk
CC:
v8-dev
Visibility:
Public.

Description

Minor Object.observe optimizations This patch includes the follow two minor optimizations: 1) When Object.unobserve-ing, instead of deleting from changeObservers, set the index position to null, and null-check when iterating elsewhere 2) Isolate creation of null-proto objects inside a utility function These former (deleting) was clearly showing up in d8 --prof traces and the later was preventing optimization of containing functions because of non-standard literal. Combined, on MDV construction/teardown benchmark, saves about 10%. Note that this patch also cleans up retrieving objectInfo inside a utility function. R=rossberg@chromium.org, rossberg BUG= Committed: https://code.google.com/p/v8/source/detail?r=18501

Patch Set 1 #

Total comments: 5

Patch Set 2 : cr changes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+31 lines, -19 lines) Patch
M src/object-observe.js View 1 13 chunks +31 lines, -19 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
rafaelw
6 years, 11 months ago (2014-01-02 22:35:10 UTC) #1
rafaelw
6 years, 11 months ago (2014-01-02 22:38:00 UTC) #2
adamk
https://codereview.chromium.org/123523002/diff/1/src/object-observe.js File src/object-observe.js (right): https://codereview.chromium.org/123523002/diff/1/src/object-observe.js#newcode267 src/object-observe.js:267: if (!observer) Not sure how much is matters, but ...
6 years, 11 months ago (2014-01-03 01:00:32 UTC) #3
rossberg
LGTM with comment https://codereview.chromium.org/123523002/diff/1/src/object-observe.js File src/object-observe.js (right): https://codereview.chromium.org/123523002/diff/1/src/object-observe.js#newcode267 src/object-observe.js:267: if (!observer) On 2014/01/03 01:00:32, adamk ...
6 years, 11 months ago (2014-01-07 17:27:00 UTC) #4
rafaelw
https://codereview.chromium.org/123523002/diff/1/src/object-observe.js File src/object-observe.js (right): https://codereview.chromium.org/123523002/diff/1/src/object-observe.js#newcode267 src/object-observe.js:267: if (!observer) On 2014/01/07 17:27:00, rossberg wrote: > On ...
6 years, 11 months ago (2014-01-07 20:16:14 UTC) #5
rafaelw
6 years, 11 months ago (2014-01-08 20:25:13 UTC) #6
Message was sent while issue was closed.
Committed patchset #2 manually as r18501 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698