Ember.Select view rendering performance

主宰稳场 提交于 2019-12-25 12:54:22

问题


I have an issue with Ember.Select views taking really long to render. Ember Inspector gives me rendering times of around 20-30ms for vanilla built in Ember.Select views (http://emberjs.com/guides/views/built-in-views/). That's fine with one or two Select fields but really adds up when you go beyond a few of them...

Here is an example of a basic Select JS Bin: http://jsbin.com/xawak/10/.

Are there any best practises to get around this?


回答1:


Its an issue of the ember JS select component which unfortunately has up until 1.8.0 still not been resolved. The problem is probably caused by the fact that the component sets up bindings for each option of the select which is an expensive operation.

There is an issue for this already.



来源:https://stackoverflow.com/questions/24069422/ember-select-view-rendering-performance

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!