adhg
adhg

Reputation: 10853

python: why IDLE is slower than terminal?

I just wrote a simple python command to check on a big list from a csv file. The csv has 2 columns with 10K lines. when I input the 2nd row into a list and later print the list, it takes the IDLE quite some time to show it where the terminal (under mac) shows it promptly. *BTW, I checked it on 2 different machines - same result.

Obviously, no one will print 10k items on a console but the idea that one is significantly faster than the other makes me wonder: why IDLE which supposed to be python's best friend is so slow?

Upvotes: 3

Views: 5399

Answers (1)

abought
abought

Reputation: 2680

The bulk of the problem is in how IDLE handles printing of text to the output window; try commenting out the print statement and see if the performance gap remains. See this closely related thread: Python: Why is IDLE so slow?

Upvotes: 6

Related Questions