[Twisted-Python] Threadpool analysis?

Jonathan Vanasco twisted-python at 2xlp.com
Wed Apr 11 19:21:11 MDT 2007


On Apr 11, 2007, at 9:06 PM, Andrew Bennetts wrote:

> Keep in mind that deferToThread uses the reactor's threadpool,  
> which by default
> only has a fairly small number of threads.  So if you are trying to  
> run many
> long-running operations via deferToThread, it may take a long time  
> for them to
> get served.  It may be better to start your own threadpool
> (twisted.python.threadpool) if you depend heavily on it.

http://twistedmatrix.com/documents/current/api/ 
twisted.internet.interfaces.IReactorThreads.html#suggestThreadPoolSize

i'm running it with 20 right now, but i've done 40 with no sweat.

// Jonathan Vanasco

| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
- - - - - - - - - - - - - - - -
| FindMeOn.com - The cure for Multiple Web Personality Disorder
| Web Identity Management and 3D Social Networking
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
- - - - - - - - - - - - - - - -
| RoadSound.com - Tools For Bands, Stuff For Fans
| Collaborative Online Management And Syndication Tools
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
- - - - - - - - - - - - - - - -






More information about the Twisted-Python mailing list