[Twisted-Python] profiling twisted

Markus Schiltknecht markus at bluegap.ch
Wed Jul 4 07:56:15 MDT 2007


Hi,

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.


Regards

Markus




More information about the Twisted-Python mailing list