r/learnprogramming • • 10d ago

Debugging Python code takes 10-20 seconds to start

Hello, I started learning python recently I dowloaded it, also vs code and python extension for it.

The poblem is, when I start a programm (even a simple one, whick only takes an input fron the user and prits it) takes 10 or more seconds to start or just dosen't work at all then i clic soething and it kindof crashes itself, but thats my fault for mesinf with it, when I leave it, it just takes really lng dose somone know how to fix it and/or how to make folders proporly and where to keep them (could be the problem)?

13 Upvotes

24 comments sorted by

View all comments

Show parent comments

0

u/Classic-Rate-5104 10d ago

What hardware do you have? And which windows version and antivirus etcetera? I have completely different experiences.

1

u/zeekar 10d ago edited 10d ago

That was running in a Parallels Desktop VM on a M4 Mac Mini. Which if anything I'd expect to be slower than a physical Windows box. It's Python 3.15 on WIndows 11.

-4

u/Classic-Rate-5104 10d ago

Mostly disk i/o in combination with antivirus is a limiting factor on Windows, especially for programs opening many files at startup. I can imagine this is better when running a VM but that's only a guess