Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(38)

Issue 13348056: optimize and fix databinding.deltaFromChange

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 8 months ago by gary.poster
Modified:
10 years, 8 months ago
Reviewers:
mp+185053, benji
Visibility:
Public.

Description

optimize and fix databinding.deltaFromChange This is a grabbag of three small changes. The biggest change is that I did some optimizations of databinding.deltaFromChange and fixed an edge case (with test). I also optimized _setupDependencies for that edge case, added some documentation about bindings (so I could refer to it myself), and optimized the bind/_bind pair a bit by removing redundant calls to code that iterates over all bindings (they are now done once in bind, rather than once per viewlet in _bind). https://code.launchpad.net/~gary/juju-gui/fixDeltaFromChangeEdgeCase/+merge/185053 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 5

Patch Set 2 : optimize and fix databinding.deltaFromChange #

Unified diffs Side-by-side diffs Delta from patch set Stats (+96 lines, -39 lines) Patch
A [revision details] View 1 1 chunk +2 lines, -0 lines 0 comments Download
M app/views/databinding.js View 1 9 chunks +76 lines, -33 lines 0 comments Download
M test/test_databinding.js View 1 5 chunks +18 lines, -6 lines 0 comments Download

Messages

Total messages: 4
gary.poster
Please take a look.
10 years, 8 months ago (2013-09-11 13:37:14 UTC) #1
gary.poster
Line-by-line comments for reviewers. https://codereview.appspot.com/13348056/diff/1/app/views/databinding.js File app/views/databinding.js (right): https://codereview.appspot.com/13348056/diff/1/app/views/databinding.js#newcode186 app/views/databinding.js:186: var index = indexBindings(bindings, null, ...
10 years, 8 months ago (2013-09-11 13:44:34 UTC) #2
benji
LGTM I asked for some more words in a couple of spots. https://codereview.appspot.com/13348056/diff/1/app/views/databinding.js File app/views/databinding.js ...
10 years, 8 months ago (2013-09-11 13:53:08 UTC) #3
gary.poster
10 years, 8 months ago (2013-09-11 14:31:04 UTC) #4
*** Submitted:

optimize and fix databinding.deltaFromChange

This is a grabbag of three small changes.  The biggest change is that I did some
optimizations of databinding.deltaFromChange and fixed an edge case (with test).
 I also optimized _setupDependencies for that edge case, added some
documentation about bindings (so I could refer to it myself), and optimized the
bind/_bind pair a bit by removing redundant calls to code that iterates over all
bindings (they are now done once in bind, rather than once per viewlet in
_bind).

R=benji
CC=
https://codereview.appspot.com/13348056
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b