[dojo-contributors] fast widget creation (TreeV3)
jkuhnert at gmail.com
Wed Jun 21 20:12:50 EDT 2006
This starts to make more sense after a little poking around. In ~theory~ the
css/style calculations would be nice have cached always on each read as you
do your stuff, but I have a feeling that when you are adding nodes/updating
content/etc all at the same time and reading css/style values it will start
to get very burdensome on the browser to recalculate them.
No time for me now but it would be interesting to see what would happen if
any of the core-ish widgets that deal with layout the most (ie contentpane?
) tried to get the style values once and then do things based on those
initial calculations. (not sure if they are read multiple times.)
Most of these things seem to cause a lot of checks and such to be run for
each read depending on whether you manipulate the dom in between reads..(do
a search for EnsureSizeUpToDate ) .
On 6/21/06, Jesse Kuhnert <jkuhnert at gmail.com> wrote:
> I did a little benchmarking of my own at one point a long time ago and
> found that it has nothing to do with the widget parser.
> The only things that seemed to take more time were those that dealt with
> css/style calculations. I'm sure it varies from widget to widget though.
> On 6/21/06, Bill Keese <bill at dojotoolkit.org> wrote:
> > ilia wrote:
> > > How can I create widget fast programmatically ?
> > >
> > > I submitted a benchmark to tests/widget/treeV3/tree_Test_bench.html .
> > >
> > > Currently dojo tree is slow because **lots** of time spent in
> > > dojo.widget.createWidget.
> > Can you be more specific? All the time should be spent in
> > createWidget(). Isn't that normal?
> > _______________________________________________
> > dojo-contributors mailing list
> > dojo-contributors at dojotoolkit.org
> > http://dojotoolkit.org/mailman/listinfo/dojo-contributors
> Jesse Kuhnert
> Tacos/Tapestry, team member/developer
> Open source based consulting work centered around
Tacos/Tapestry, team member/developer
Open source based consulting work centered around
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the dojo-contributors