Re: [Vala] How to abort sorting in Gee.ArrayList?

2010-07-06 Thread Luca Bruno
On Mon, Jul 05, 2010 at 11:17:59PM +0200, Didier 'Ptitjes' wrote: [Hum, guess that should go to the list too...] Hi Christer, Could you open a feature-request ticket in Gee bug-tracker for that ? Does it means there's a possibility to add a gio dependency to gee? Or creating a thread-safe

Re: [Vala] How to abort sorting in Gee.ArrayList?

2010-07-05 Thread Jan Hudec
On Sun, Jun 27, 2010 at 15:25:34 +0200, synkro wrote: Most sorting algorithms don't like being aborted. Aborting sorting also means that not perfectly sorted data is acceptable. I suggest bubble sort, it's not fast but easily aborted. Have you noticed the *millions of entries* statement? Than

Re: [Vala] How to abort sorting in Gee.ArrayList?

2010-07-05 Thread Didier 'Ptitjes'
[Hum, guess that should go to the list too...] Hi Christer, Could you open a feature-request ticket in Gee bug-tracker for that ? Best regards, Didier. On 28/06/10 20:26, Christer wrote: Hi Didier, Yes, the async method idea with a Cancellable argument is something I think could work. I

[Vala] How to abort sorting in Gee.ArrayList?

2010-06-27 Thread Christer
Hi, Whats a smart way of aborting sorting a list? I have objects in a ArrayList being sorted using the Comparable interface. My application is handling millions of items being sorted and I sometimes would like to abort the sorting if the user chooses to do something else. And thanks for Vala and

Re: [Vala] How to abort sorting in Gee.ArrayList?

2010-06-27 Thread synkro
Hi! Most sorting algorithms don't like being aborted. Aborting sorting also means that not perfectly sorted data is acceptable. I suggest bubble sort, it's not fast but easily aborted. greets synkro ___ vala-list mailing list vala-list@gnome.org