Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make PyCharm faster/lighter? [duplicate]

Tags:

pycharm

I really dig the idea of PyCharm and would love to use it. However, its tendency to consume the computer's processing power and lag is a large drawback.

In the near future, I'll be running an introductory Python course and would like to recommend that the students install PyCharm as it seems to be the friendliest IDE out there.

Is there a way to speed up PyCharm to make its processing a bit 'lighter'?

like image 317
T.Lipperz Avatar asked Jul 07 '16 10:07

T.Lipperz


People also ask

How much RAM is required for PyCharm?

Pycharm recommend 2GB of ram but the actual RAM required for your system depends on what all other process are running. I would say check your system memory usage when PyCharm is not running. PyCharm could take anywhere between 500MB-1GB of additional memory.


Video Answer


2 Answers

The slow performance of PyCharm is mainly due to small amount of RAM. I am running PyCharm on a machine with 2GB RAM. Here are my recommendations on making it work smoother.

  1. You can't really tweak PyCharm for performance balancing the power it provides. If you turn off the inspection or works on Power Saver Mode, You won't get code completion unless you manually invoke it with Ctrl + Space.

  2. Switch to a lighter Operating System. (If you are a Linux person you have a plenty of choices.)

  3. Monitor other System processes. (I was able to bring down standby memory usage of Kubuntu to less than 300MB by disabling other 'useless' processes that eat up memory)

  4. Disable unused plugins in PyCharm.

  5. Modern browsers are memory hungry. Limit number of tabs and plugins (even Adblock consumes around 70MB RAM) if you open docs on brower while you code.

  6. Upgrade your hardware. (This really helps. Invest on RAM so you can ignore the points above)

WingIDE is an another IDE that works somewhat similar to PyCharm.

like image 98
All Іѕ Vаиітy Avatar answered Oct 10 '22 00:10

All Іѕ Vаиітy


PyCharm is written in Java, and Java uses Just In Time compiling i.e. a method in Java bytecode is converted to native code the first time that method is called. The next time that method is called it runs much faster.

So, the first thing you should do with a new installation of PyCharm is run it a few times and try some of the basic features. Be sure to open and close PyCharm a few times as well. I find that this helps everytime I install a new version of PyCharm.

like image 37
Chad Hamilton Frederick Avatar answered Oct 09 '22 23:10

Chad Hamilton Frederick