Re: nsGenericElement::InsertBefore performance
Boris Zbarsky <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.dom |
|---|---|
| Message-ID | <[email protected]> |
Michiel van Leeuwen wrote: > - switch to month view (menu: view -> month view, or the toolbarbutton) > - add an event (file -> new event, or double click on any day box) > - Save the event (button save and close) Aha. Thank you. Brief summary: Of the time under insertBefore there, about half is spent on the XBL binding script attachment (75% executing the constructor, the rest installing the implementation; the latter is largely JS-wrapping the node). It's probably installing multiple bindings, because I bet some of those anonymous nodes have bindings of their own. The other half is spent under ConstructFrame. 20% is spent resolving style, 50% is spent loading the XBL bindings, generating their anonymous content, etc. I should note that searching for "calendar-month-day-box-item" shows me a number of CSS rules that might not be all that fast, depending on how many class="calendar-event-selection" nodes there are, etc. So my overall conclusion is as the guess was: there are just too many nodes and too much JS in flight here, per item. -Boris