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

Re: Self optimizing iterable

2009-07-17 Thread Paul Rubin
Zac Burns zac...@gmail.com 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

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 Gabriel Genellina
En Fri, 17 Jul 2009 21:31:44 -0300, Zac Burns zac...@gmail.com 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

Re: Self optimizing iterable

2009-07-17 Thread Carl Banks
On Jul 17, 5:40 pm, Paul Rubin http://phr...@nospam.invalid wrote: Zac Burns zac...@gmail.com 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