Re: worker thread iterating over array - SLOW

2011-02-01 Thread Peter Lübke
Ken, you really made the whole issue clear to me. I ran my app in the debugger with breakpoints inside the methods of the objects in the array, and as you say, every single method is executed in the main thread! I'll have a look at YAMessageQueue. Thanks again for your great input, Peter

Re: worker thread iterating over array - SLOW

2011-01-31 Thread Ken Thomases
On Jan 31, 2011, at 8:48 PM, Peter Lübke wrote: > Thanks Ken, You're welcome. > Am 01.02.2011 um 02:07 schrieb Ken Thomases: > >> So, you have effectively failed to shift the work from the main thread to >> the worker thread. The main thread is a "server" doing all of the work on >> the beha

Re: worker thread iterating over array - SLOW

2011-01-31 Thread Peter Lübke
Thanks Ken, I was afraid to get an answer like this:-) Am 01.02.2011 um 02:07 schrieb Ken Thomases: On Jan 31, 2011, at 5:13 PM, Peter Lübke wrote: I use a worker thread in my app that invokes the same method(s) on all objects in an array sent from the main thread. The array may contain t

Re: worker thread iterating over array - SLOW

2011-01-31 Thread Ken Thomases
On Jan 31, 2011, at 5:13 PM, Peter Lübke wrote: > I use a worker thread in my app that invokes the same method(s) on all > objects in an array sent from the main thread. The array may contain > thousands of objects. > The main thread communicates with the worker thread via distributed objects. >

Re: worker thread iterating over array - SLOW

2011-01-31 Thread Peter Lübke
Am 01.02.2011 um 00:20 schrieb A.M.: On Jan 31, 2011, at 6:13 PM, Peter Lübke wrote: Hi list, I use a worker thread in my app that invokes the same method(s) on all objects in an array sent from the main thread. The array may contain thousands of objects. The main thread communicates wi