Skip to content

Speeding up instrumentation #25

@jwilk

Description

@jwilk

As indicated in README, the instrumentation is slow at the moment.

Here are some rough ideas how to speed it up:

  • Replace sys.settrace() with lower-level PyEval_SetTrace.

  • Rewrite bytecode to inject instrumentation. (Perhaps use the bytecode module?)

  • Rewrite AST to inject instrumentation. (See how it's done in pytest.)

(I don't plan to work on any of these, unless there's funding for the work.)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions