[Twisted-Python] How to accept connections faster

Andrzej Leszczynski leszczynscy at yahoo.com
Wed Mar 16 08:46:14 EST 2005


>         print "Looping..."
>         for i in range(10000000):
>             pass
>         print "Looping done."

regardles I am not sure the reason of the loop and how
it fits into the design of Reactor, I wonder why it is
*only* 2 seconds. On my laptop 1.1GHz, 256MB RAM it
takes a way more to complete the loop and unblock the
Reactor's "select".

Second comment is why not xrange(10000000). With range
my  python2.3 starts allocating xxMB of memory.

What machine,OS,python version you use?

More information about the Twisted-Python mailing list