Reputation: 468
I noticed several times that a simple python script (with some straightforward algebraic computation in a loop) runs considerably faster (up to a factor 6) when launched on a shell command line as compared to a run via IDLE's shell. There is nothing fancy going on in the script. I only print a loop variable to visually follow progress in the loop.
Surely just this print statement cannot be the reason for the speed loss in IDLE, or can it ?
Can someone explain me why this is ?
Upvotes: 2
Views: 3990
Reputation: 20343
The Tkinter
text widget is slow, and IDLE uses this to print text to screen.
See this question.
Upvotes: 1