Ember.Select查看渲染性能 [英] Ember.Select view rendering performance

查看:264
本文介绍了Ember.Select查看渲染性能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个问题,Ember.Select视图需要很长时间才能呈现。 Ember Inspector为我提供了大约20-30ms 的渲染时间,用于Ember.Select视图中内置的香草( http://emberjs.com/guides/views/built-in-views/ )。这是一个或两个选择字段,但真的加起来,当你超出其中的几个...

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...

这是一个基本的选择JS Bin的例子: a href =http://jsbin.com/xawak/10/ =nofollow> http://jsbin.com/xawak/10/ 。

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

有没有最好的做法来解决这个问题?

Are there any best practises to get around this?

推荐答案

它是一个问题的ember JS select组件不幸的是,直到1.8.0还没有解决。该问题可能是由于组件为select的每个选项设置绑定的事实引起的,这是一个昂贵的操作。

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.

这篇关于Ember.Select查看渲染性能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆