[Twisted-Python] How to accept connections faster
Andrzej Leszczynski
leszczynscy at yahoo.com
Wed Mar 16 06:46:14 MST 2005
Hi,
> 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?
A.
More information about the Twisted-Python
mailing list