views:

38

answers:

1

Hi,all

i got a performance issue when trying to do:

from twisted.internet import reactor
#some codes here
pid = os.fork()
if not pid:
    #some codes blahblahblah
    reactor.run()

this caused very low performance and i didn't find useful informations from the official documentation, i believe it because i import reactor module before os.fork(), any idea?

A: 

Can't you use subprocess instead of os.fork?

M0E-lnx
i don't want to break or replace the existing codes. For me, it's hard to estimate the risk
Kevin xue