I\'m a big fan of PyCharm by JetBrains but I do run into some issues that I thought maybe I\'ll ask here about.
In my case, the problem was a folder in the project directory containing 300k+ files totaling 11Gb. This was just a temporary folder with images results of some computation. After moving this folder out of the project structure, the slowness disappeared. I hope this can help someone, please check your project structure to see if there is anything that is not necessary.
I thought I had a speed issue with PyCharm but in the end it turned out that the output console in PyCharm does not necessarily emulate the output of state-of-the-art terminal applications.
Here's my solution:
Click on drop down (arrow) symbol of your configuration -> click edit configuration
-> click emulate terminal in output console
-> click ok
-> Run the configuration.
1. Change the inspection level
Current PyCharm versions allows you to change the type of static code analysis it performs, and also features a Power/CPU Saving feature (Click on the icon at the bottom right, next to the lock):
2. Change indexed directories
Exclude directories from being indexed which are set in the project paths but not actually required to be searched and indexed. Press ALT+CTRL+S
and search for project
.
3. Do memory sweeps
There is another interesting feature:
Go into the settings (File/Settings) and search for memory. In IDE Settings>Appearance
-> tick Show memory indicator
. A memory bar will be shown at the bottom right corner (see the picture below). Click this bar to run a garbage collection / memory sweep.