Skip to content

trepan2 is very slow (24 times slower than pdb) in stepping #20

@apteryks

Description

@apteryks

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions