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

Issue 86070045: save per-delegate binding map, to avoid excess parsing (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years ago by rafaelw
Modified:
10 years ago
Reviewers:
arv, John Messerly, justin
Base URL:
https://github.com/Polymer/TemplateBinding.git@master
Visibility:
Public.

Description

save per-delegate binding map, to avoid excess parsing R=arv BUG= Committed: https://github.com/Polymer/TemplateBinding/commit/180e4b5

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+40 lines, -11 lines) Patch
M src/TemplateBinding.js View 4 chunks +40 lines, -11 lines 3 comments Download

Messages

Total messages: 3
rafaelw
Committed patchset #1 manually as r180e4b5 (presubmit successful).
10 years ago (2014-04-10 21:12:41 UTC) #1
rafaelw
+ justin & john
10 years ago (2014-04-10 21:13:20 UTC) #2
arv
10 years ago (2014-04-11 14:45:07 UTC) #3
Message was sent while issue was closed.
LGTM

https://codereview.appspot.com/86070045/diff/1/src/TemplateBinding.js
File src/TemplateBinding.js (right):

https://codereview.appspot.com/86070045/diff/1/src/TemplateBinding.js#newcode517
src/TemplateBinding.js:517: var map = getInstanceBindingMap(content, delegate_);
s/delegate_/delegate/

https://codereview.appspot.com/86070045/diff/1/src/TemplateBinding.js#newcode919
src/TemplateBinding.js:919: // delegate gets the opportunity to prepare* the
template content once
"prepare*" ?

https://codereview.appspot.com/86070045/diff/1/src/TemplateBinding.js#newcode927
src/TemplateBinding.js:927: var map = delegate_.bindingMaps[contentId];
It looks like contentId is only used as a key in the map. Maybe call it
getContentHash or getContentUid or something more specific?
Sign in to reply to this message.

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