[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[List Home]
|
Re: [platform-swt-dev] inefficient TreeItem
|
- From: Tom Schindl <tom.schindl@xxxxxxxxxxxxxxx>
- Date: Mon, 19 Apr 2010 14:15:36 +0200
- Delivered-to: platform-swt-dev@eclipse.org
- User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; de; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4
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