That worked! Awesome, thanks!
-deech

On Fri, Aug 21, 2009 at 4:27 PM, Guilherme Aiolfi <[email protected]> wrote:

> Hi,
> try to use TreeVirtual:
> http://demo.qooxdoo.org/devel/demobrowser/#treevirtual~TreeVirtual.html<http://demo.qooxdoo.org/devel/demobrowser/#treevirtual%7ETreeVirtual.html>
> <http://demo.qooxdoo.org/devel/demobrowser/#treevirtual%7ETreeVirtual.html>Because
> 5000 IS a big number for web applications.
>
> On Fri, Aug 21, 2009 at 6:03 PM, aditya siram <[email protected]>wrote:
>
>> Hi all,
>> I have a question on the efficiency of iterating through an object. I am
>> making a small dictionary web-app. The dictionary contains ~5000 words.
>> On start-up I get the entire list, indexed by letter, from the server and
>> store it in memory. The list comes as a JSON object that looks like:
>>
>> {
>>  "A" : {"1234" : "an A word",
>>         "1235" : "another A word"},
>>  "B" : ...
>>  "C" : ...
>>     (..)
>>  "Z" : ...
>> }
>>
>> Here the "1234" etc are unique ids required for querying the definition of
>> the word.
>>
>> Once I have the list, I build a 'qx.ui.tree.Tree' and fill in only the
>> letters (A-Z) as subfolders. Since 5000 is not that many I was initially
>> populating the entire tree using a nested for-key-in-loop to iterate through
>> the object. But this was taking long enough that Firefox kept wanting to
>> stop the script. Any ideas on why it is taking this long - is iterating
>> through object keys inefficient?
>>
>>
>> thanks ...
>> -deech
>>
>>
>> ------------------------------------------------------------------------------
>> 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
>
>
------------------------------------------------------------------------------
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