PhpStorm performance optimisation tips

My first experience of JetBrains products was back in 2006 with IntelliJ when I was doing Java development. Over the last few years I’ve been happily using PhpStorm, but I’m always keen to optimise it’s performance wherever possible.

My work computer is a pretty neat Samsung laptop with an Intel i5 processor, 4GB of DDR3 memory and a 128GB solid-state drive. The SSD has made the noticeable performance improvement over previous computers I’ve worked on.

However, with the latest version of PhpStorm (8.0.1 at the time of writing this), I’ve noticed that it feels quite sluggish when working with relatively large projects. I primarily use PhpStorm for front-end web development, consisting of HTML, CSS (LESS), JavaScript and Mustache templates. So I could really be using WebStorm, but I previously did a lot of PHP development and I still like to occasionally view PHP source code in the projects that I’m involved with.

After doing some research, I found two tips which were applicable to my environment which includes Windows 8, as well as using TortoiseGit and Grunt with numerous plugins. Here are the tips:

  1. Exclude the node_modules directory with a project in PhpStorm. Due to the large number of files in this folder (over 5,000 in one of my projects), these are all accessible and appear in search results whenever you use the built in search or navigation functionality. For example: when you navigate to a file CTRL + SHIFT + N or find/replace in path CTRL + SHIFT + F/R. So to prevent all those files from being accessible in your project, right click on the node_modules folder within the Project window and select “Mark Directory As…” and then choose “Excluded”.
  2. Disable icon overlays by TortoiseGit in your operating system. Within TortoiseGit, browse to Settings → Icon Overlays → Status cache: “None”.

Thanks to the answer provided on Stack Overflow and to the article on Frickelblog respectively for the tips.

The “responsiveness” of PhpStorm on my laptop has definitely increased with these changes that I made. Finding and navigating to files feels instant again, which is something that I sorely missed after upgrading to version 8. I’m not sure if it’s related to something in my environment, or if it is part of a change in version 8 of PhpStorm, but there was definitely a noticeable decrease in the overall performance on my laptop.

As always, it is great when developers share their findings and are able to help out people in need. Keep it up!

  1. Cape Town UX Craft – August Meetup

    The topic for the most recent meetup was: Content’s Forgotten Corners, presented by content strategist Kerry-Anne Gilowey.

    Continue Reading
  2. Cape Town Front-end Developers – July Meetup

    Building a front-end style guide with Jekyll was the topic for the most recent Cape Town Front-end Developers meetup. The topic was presented by Justin Slack who currently works at New Media Labs.

    Continue Reading
  3. Cape Town UX Craft – July Meetup

    The Cape Town UX Craft is a group on the popular service, Meetup. They held their second meetup on the 23rd of July at Ogilvy’s office in Cape Town.

    Continue Reading
  4. Accessing a Grunt connect server on your WiFi network

    Until now, I haven’t found a way to easily view my front-end HTML templates on my phone or iPad, without uploading them to a live (staging) server.

    Continue Reading
  5. Working remotely can work

    I spent last year freelancing, but was offered a great opportunity to work at Joe Public n on a full-time basis this year.

    Continue Reading
  6. Tips for freelance front-end web developers

    Having just reflected on my year of freelancing, I thought it would be good to look back and share some of things that helped make my year a successful one.

    Continue Reading
  7. Reflecting on a year of freelancing

    When I began this chapter of my life as a freelance front-end web developer, I had the best of intentions, but obviously had no idea on how it would pan out.

    Continue Reading
  8. Hello World!

    Welcome to my small, but carefully positioned footprint in the world wide web. With over 10 years of industry–related experience, I made the decision to specialise in front-end development towards the end of last year, 2012.

    Continue Reading