Re: Self optimizing iterable

2009-07-17 Thread Carl Banks
On Jul 17, 5:40 pm, Paul Rubin wrote: > Zac Burns writes: > > An example use case for this would be for something like a large table > > of regular expressions that would be iterated over trying to match in > > some string. If some regular expressions are more statis

Re: Self optimizing iterable

2009-07-17 Thread Gabriel Genellina
En Fri, 17 Jul 2009 21:31:44 -0300, Zac Burns escribió: I would like a set like object that when iterated maintains a count of where iteration stopped and then re-orders itself based on that count so that the iteration stopped on the most bubble to the top. An example use case for this would b

Re: Self optimizing iterable

2009-07-17 Thread MRAB
Zac Burns wrote: Greetings, I would like a set like object that when iterated maintains a count of where iteration stopped and then re-orders itself based on that count so that the iteration stopped on the most bubble to the top. An example use case for this would be for something like a large

Re: Self optimizing iterable

2009-07-17 Thread Paul Rubin
Zac Burns writes: > An example use case for this would be for something like a large table > of regular expressions that would be iterated over trying to match in > some string. If some regular expressions are more statistically more > successful then the iteration will generally be short. Genera

Self optimizing iterable

2009-07-17 Thread Zac Burns
Greetings, I would like a set like object that when iterated maintains a count of where iteration stopped and then re-orders itself based on that count so that the iteration stopped on the most bubble to the top. An example use case for this would be for something like a large table of regular ex