Well, there's not really anything that you need to add to the tree
widget specifically. The `clever' thing that the sidebar customize
dialog does (actually, the FTP browser does this, too) is catch clicks
on a `twisty'. When somebody opens a `twisty', it then adds a new
datasource to the composite and loads it. As the datasource loads, the
contents of the folder pop in.
chris
Dan Mosedale wrote:
>
> Is the XUL tree-widget scheduled to get this sort of cleverness added
> to it, perhaps as a way to speed up mail/news thread-pane scrolling?
>
> Dan
>
> [EMAIL PROTECTED] (Chris Waterson) writes:
> > Well, that depends. If you're still planning to load the files `all at
> > once', then I suspect that it will not improve performance: you'll be
> > paying extra overhead of going through a `composite datasource' to merge
> > the files back together.
> >
> > OTOH, if you're going to make your tree widget `clever' so that it
> > detects when a file needs to be loaded and loads it lazily (e.g., when
> > you open a folder), then yes, I think you'll improve performance. (See
> > the `sidebar customization panel' at
> > http://lxr.mozilla.org/mozilla/source/xpfe/components/sidebar/resources/
> > for an example of how to do this.)
> >
> > chris
> >
> > Eric Plaster wrote:
> > > I have a very large rdf file that I want to break up into several
> > > different files. The question that I have is, will this improve
> > > performance in loading and modifing the data? I have it hooked up to
> > > a tree, and it seems to take a little while for it load a 500+kb rdf
> > > file.