pycharm running way slow

后端 未结 9 637
礼貌的吻别
礼貌的吻别 2020-12-07 08:20

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.

  1. It hangs unexpectedly and this happens often. O
相关标签:
9条回答
  • 2020-12-07 08:52

    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.

    0 讨论(0)
  • 2020-12-07 08:53

    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.

    0 讨论(0)
  • 2020-12-07 08:56

    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):

    enter image description here

    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.

    enter image description here

    0 讨论(0)
提交回复
热议问题