Skip to content

Python Debugging is too slow. #1634

Description

@jeanne150

When debugging with the same piece of code, the time it takes to run the result with run is 25.895,

and the time it takes to run the result with debug is 205.

import time
from uuid import uuid4

a=[uuid4() for i in range(20000)]
b=a[:19000]+[uuid4() for i in range(1000)]
start=time.time()
c=[i for i in a if i in b]
print(c)
print(time.time()-start)
print("debug point here")

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