Skip to content

Conversation

@pdepetro
Copy link

@pdepetro pdepetro commented Dec 30, 2025

Use PEP768 code injection on Python>=3.14.

Profiling shows that this is approximately 4x faster than pydevd's gdb injection:

======================================================================
RESULTS SUMMARY
======================================================================

sys.remote_exec (Python 3.14+ / PEP 768):
  Successful runs: 20/20
  Average time:    0.4589s
  Min time:        0.4178s
  Max time:        0.5595s

pydevd injection (--disable-sys-remote-exec):
  Successful runs: 20/20
  Average time:    2.0423s
  Min time:        1.9090s
  Max time:        2.5464s

----------------------------------------------------------------------
COMPARISON:
  sys.remote_exec is 4.45x faster than pydevd injection
  Time saved per attach: 1.5834s
----------------------------------------------------------------------

@pdepetro pdepetro requested a review from a team as a code owner December 30, 2025 20:43
@pdepetro
Copy link
Author

@microsoft-github-policy-service agree company="Meta"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant