[Twisted-Python] profiling twisted

Markus Schiltknecht markus at bluegap.ch
Wed Jul 4 09:56:15 EDT 2007


glyph at divmod.com wrote:
> Markus, can you instrument spawnProcess and figure out which *part* of 
> it is taking so long?

I give it a try. Especially, because I need to fiddle with 
process.Process anyway, see the mail I'm going to send in a minute or two...

> Like exarkun says: this is not normal.  (I wonder 
> if we are unwittingly calling some blocking API in there?  I don't think 
> so, but...)

I'll try to do some more benchmarking.

> In other words, this may appear to work, but if you suddenly burst into 
> flame unexpectedly, don't blame *us*.  And you probably will, 
> eventually, if you keep doing that.

Yup, I'm aware of that. It's what I meant when calling it ugly or dirty 
or whatever I said.



More information about the Twisted-Python mailing list