-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Description
I've started experimenting with trepan2, which looks very promising :)
Unfortunately it appears to be very slow, too slow to use it as my regular debugging tool. The following is a small benchmark which basically just starts a cherrypy.
Save the following script somewhere, and install cherrypy (pip install cherrypy).
import time
TIME_START = time.time()
import cherrypy
if __name__ == '__main__':
cherrypy.engine.start()
cherrypy.engine.stop()
cherrypy.engine.exit()
print 'Execution took {}'.format(time.time() - TIME_START)
Now, run it with pdb, like this: pdb cherrypy_bench.py. Press 'c' to run until the end. I get: Execution took 0.215445995331
Doing the same, but using trepan2, I get: Execution took 5.29994106293
This is just a very simple example. With a real life scenario the time to just start a cherrypy or complex project could be 30 s or worst.
Is there something which could be done to speed it up?
Metadata
Metadata
Assignees
Labels
No labels