Adding events to scheduler in bulk using _process_loading()?


I noticed that scheduler.addEvent() is kind of slow when adding a lot of events. I found the scheduler has internal optimizations to bypass event rendering and speed things up. I got significant performance improvements by calling: scheduler._process_loading(eventsDataArray), where eventsDataArray is a JavaScript array with the objects I would normally pass to scheduler.addEvent().

The _process_loading() seems to be an internal scheduler function not meant to be called from the outside, though. Is there a better way to accomplish the same using a public method?



Yes, scheduler.addEvent() affects the performance because of multiple calls and events renderings.
Unfortunately, there is no public method for it. Redefining the internal function can be a solution in this case.