Skip to content

Python 3.12 runs much slower than Python 3.11 #1496

Closed
@cvzi

Description

@cvzi

Environment data

  • debugpy version: 1.8.0
  • OS and version: Windows 10
  • Python version: 3.12 64bit
  • Using VS Code

Actual behavior

Importing the emoji module (v2.10.0) with debugging enabled takes a long time with Python 3.12 compared to Python 3.11.

When running from VS Code with the default debug configuration via F5, the import takes 4 minutes on Python 3.12 but only 50ms on Python 3.11

The emoji module contains a large Python file, here. I suspect the slow debugging has something to do with this file.

Expected behavior

Similar run times in Python 3.11 and Python 3.12

Steps to reproduce:

  1. Install emoji module: pip install emoji==2.10.0
  2. Create a test file in VS Code that imports the emoji module:
    import time
    start = time.time()
    
    import emoji
    
    end = time.time()
    print("import time", end - start)
  3. Set VS Code to Python 3.12
  4. Run in VS Code by pressing F5

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