Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-swt-dev] inefficient TreeItem


Here is an example snippet showing how to create a virtual tree using a SetData listener.
http://dev.eclipse.org/viewcvs/index.cgi/~checkout~/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet202.java

Carolyn


From: Tom Schindl <tom.schindl@xxxxxxxxxxxxxxx>
To: "Eclipse Platform SWT component developers list." <platform-swt-dev@xxxxxxxxxxx>
Date: 19/04/2010 08:19 AM
Subject: Re: [platform-swt-dev] inefficient TreeItem
Sent by: platform-swt-dev-bounces@xxxxxxxxxxx





Please ask user questions on the newsgroup. What you want is a
virtual-tree where items are only created when scrolled into view.

Tom

Am 19.04.10 14:12, schrieb Tech Id:
> Hi,
>
> I was planning to use the SWT Tree for showing some amount of data (not
> huge, but big amount).
> I have to parse a file and create item for each token.
> The biggest file I have is having 40k tokens.
> While parsing the file for tokens (some small string processing
> algorithm) happens within 2 seconds, creating 40k itmes takes around 40
> seconds!!!
>
> I understand that creating a TreeItem is definitely lot more work than
> parsing a token, but still.
> Can it not be made faster such that all 40k items are made within 5 seconds?
> (Maybe some kind of delayed painting of items (not creation) would help.
> Any Ideas?)
>
>
> I use the following line of code to create the TreeItem:
>     TreeItem tree_item = new TreeItem (tree, SWT.NONE);
>
> Regards
> Techieeee
>
>
>
> _______________________________________________
> platform-swt-dev mailing list
> platform-swt-dev@xxxxxxxxxxx
>
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev


--
B e s t S o l u t i o n . a t                        EDV Systemhaus GmbH
------------------------------------------------------------------------
tom schindl                                        geschaeftsfuehrer/CEO
------------------------------------------------------------------------
eduard-bodem-gasse 5/1    A-6020 innsbruck      phone    ++43 512 935834
_______________________________________________
platform-swt-dev mailing list
platform-swt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev



Back to the top