In http://polymer.github.io/polymer/ under dom-repeat, check out
initialCount and targetFramerate. These put dom-repeat into a chunked model
and can help with performance when rendering large lists.

<template is="dom-repeat" items="[[items]]  initial-count="30"
target-framerate="30">
  <my-element foo="[[item]]"> </my-element>
</template>

You're saying you don't want to use data binding  on my-element to set it's
foo property? I'd be curious to see your example and if it has performance
issues using bindings. Bindings are getters/setters in Polymer.  If
anything, the bottleneck may instead be rendering a huge number of items
all at once. This is why we have iron-list and dom-repeat in chunked mode.



On Fri, Jan 22, 2016 at 2:54 PM Sergei Mutovkin <[email protected]> wrote:

> Hello,
>
> I'm trying to figure out what is the recommended way to pass a large
> JavaScript object to an element. Why?
>
> I follow a pattern presented during Polymer Summit where I perform AJAX
> request inside a custom element, I receive back an array with large
> (hundreds) of properties each. To present this data I would like to use
> dom-repeat over my custom element, i.e. I would like to pass largish "item"
> to the element without using element parameters.
>
> Thanks in advance.
>
> Follow Polymer on Google+: plus.google.com/107187849809354688692
> ---
> You received this message because you are subscribed to the Google Groups
> "Polymer" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/polymer-dev/26e1f631-8059-4340-af3f-7cb1fe907fa6%40googlegroups.com
> <https://groups.google.com/d/msgid/polymer-dev/26e1f631-8059-4340-af3f-7cb1fe907fa6%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

Follow Polymer on Google+: plus.google.com/107187849809354688692
--- 
You received this message because you are subscribed to the Google Groups 
"Polymer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/polymer-dev/CACGqRCANLQHHAMqRcSNQPoJyxSbrt%3D9638pRWnxGybqvLizMVw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to