FullCalendar - 我应该期待什么级别的事件渲染性能呢? [英] FullCalendar - What level of events rendering performance should I expect?

查看:174
本文介绍了FullCalendar - 我应该期待什么级别的事件渲染性能呢?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用 $('#CalendarPlugin')渲染的100个事件中FullCalendar fullCalendar('renderEvent',{}); 被称为一个循环100次。

I am rendering 100 events in FullCalendar using $('#CalendarPlugin').fullCalendar('renderEvent', {} ); being called 100 times in a loop.

在浏览器的性能,我看到我的电脑上的(酷睿2 6600 @ 4GB内存的2.4GHz)

The browser performance I'm seeing on my computer (Core2 6600 @ 2.4GHz with 4GB RAM)


  • Chrome浏览器:3秒

  • 火狐:6秒

  • IE9 :6秒

  • Chrome: 3 seconds
  • Firefox: 6 seconds
  • IE9: 6 seconds

这是业绩预期的水平?有没有加载和渲染事件的一个更快的方法?

Is this an expected level of performance? Is there a faster way to load and render events?

一旦他们已被添加到FullCalendar,几个月之间移动重新绘制它快得多。这是使用它们的只是初始加载 renderEvent 这是缓慢的。

Once they've been added to FullCalendar, moving between months and re-rendering it much faster. It's just the initial loading of them using renderEvent that's slow.

推荐答案

开发者正在对性能增强的1.4.4版本,但打到插件100次循环仍是沉重的。

The developer was working on performance enhancements for the 1.4.4 version, but hitting the plugin 100 times in a loop is still hefty.

一个技巧,你可以尝试来提高性能是使用对象 addEventSource ,因为这等待和完全呈现我相信:

One technique you could try to improve performance is to use an object in addEventSource as this waits and renders altogether I believe:

 $("#calendar").fullCalendar("addEventSource", msg.items);

这篇关于FullCalendar - 我应该期待什么级别的事件渲染性能呢?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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