Hi,

I made some profiling in the demo and it seems that your suggestion of  
creating the rawData array is really faster (1.68 ms) than the current  
implementation (1.76 ms). The creation of the data array takes a lot  
more time (17.474 ms).
But all of these times are not really a problem compared to the time  
the controller needs to create the 600 ListItems and add them to the  
list (2560 ms).

A solution to this problem are virtual widgets, which do not create so  
much widgets, even if your list is much bigger. But our virtual  
widgets are currently in an experimental state (really experimental,  
not like the data binding). So there will come some changes for sure  
in the next release. But you can take a look at the messenger demo,  
which demonstrates how the virtual list can be used:
http://demo.qooxdoo.org/devel/demobrowser/#virtual~Messenger.html
There is also an experimental controller for that list. You can see  
that on in the ListBinding demo:
http://demo.qooxdoo.org/devel/demobrowser/#virtual~ListBinding.html

Best,
Martin

Am 30.07.2009 um 23:55 schrieb Fritz Zaucker:

> Hi,
>
> when trying
>
>   http://demo.qooxdoo.org/current/demobrowser/ 
> #data~SearchAsYouType.html
>
> and changing the code to use an array of 600 elements instead of the  
> 60
> elements in the example, the code runs VERY slowly.
>
> It seems, that both
>
>       var rawData = [];
>       for (var i = 0; i < 600 i++) {
>         rawData.push(names[i % 10] + " " + i);
>       }
>
> and
>
>      var data = new qx.data.Array(rawData);
>
> are painfully slow.
>
> BTW, it seems that
>
>       var rawData = new Array(600);
>       for (var i = 0; i < 600 i++) {
>         rawData.push(names[i % 10] + " " + i);
>       }
>
> seems a lot faster then the example code in the demobrowser.
>
>
> So, is there anything I can do to improve the performance in this  
> example
> for larger arrays?
>
> Thanks,
> Fritz
>
> -- 
> Oetiker+Partner AG            tel: +41 62 775 99 03 (direct)
> Fritz Zaucker                        +41 62 775 99 00 (switch board)
> Aarweg 15                            +41 79 675 06 30 (mobile)
> CH-4600 Olten                   fax: +41 62 775 99 05
> Schweiz                         web: www.oetiker.ch
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008  
> 30-Day
> trial. Simplify your report design, integration and deployment - and  
> focus on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to