Re: [Twisted-Python] Limiting a task.Cooperator to N work units / sec

2010-10-03 Thread Phil Mayers
On 10/01/2010 02:27 PM, exar...@twistedmatrix.com wrote: > On 12:58 pm, p.may...@imperial.ac.uk wrote: >> On 01/10/10 13:46, exar...@twistedmatrix.com wrote: >>> On 09:41 am, p.may...@imperial.ac.uk wrote: Is there an easy way to make a task.Cooperator instance only execute N ticks /

Re: [Twisted-Python] Limiting a task.Cooperator to N work units / sec

2010-10-01 Thread exarkun
On 12:58 pm, p.may...@imperial.ac.uk wrote: >On 01/10/10 13:46, exar...@twistedmatrix.com wrote: >>On 09:41 am, p.may...@imperial.ac.uk wrote: >>>Is there an easy way to make a task.Cooperator instance only execute >>>N >>>ticks / sec, summed across all iterators it's driving? So if you add >>>two

Re: [Twisted-Python] Limiting a task.Cooperator to N work units / sec

2010-10-01 Thread Phil Mayers
On 01/10/10 13:46, exar...@twistedmatrix.com wrote: > On 09:41 am, p.may...@imperial.ac.uk wrote: >> Is there an easy way to make a task.Cooperator instance only execute N >> ticks / sec, summed across all iterators it's driving? So if you add >> two >> iterators, they each run at N/2 per sec, 3 at

Re: [Twisted-Python] Limiting a task.Cooperator to N work units / sec

2010-10-01 Thread exarkun
On 09:41 am, p.may...@imperial.ac.uk wrote: >Is there an easy way to make a task.Cooperator instance only execute N >ticks / sec, summed across all iterators it's driving? So if you add >two >iterators, they each run at N/2 per sec, 3 at N/3, etc. > >It seems like this ought to do it: Very close!