How is indexing performed? What type of CPU will speed up PHPStorm?

How does reindexing occur?  What exactly is happening?  Is the process mult-threaded?  There's probably some changelog that tackles this but that would be a needle in a haystack.

The reason that I ask this is because I want to know would it be more beneficial to have more cpu cores or is higher cpu speed more important?

I'm sure that a certain amount of RAM will make things work faster and also faster storage.  But having some technical information about how things are cached would allow us to run some intelligent benchmarks.

0
1 comment
Avatar
Permanently deleted user

Hello,

Full reindexing occurs on every time a new project is opened or after the IDE caches were invalidated. PhpStorm goes through all the projects and directories and analyzes them for any existing symbols (variables, methods, classes etc) and their relations. The process is surely multi-threaded as this is the most complex task and in order to be performed fast it uses all the available resources.

SSD disk is the ultimate solution when you want to things run faster in general. PhpStorm also benefits from this because it is so much easier to access the file system with solid state drive rather than mechanical hard drive. RAM is a more controversial thing but we need to remember that PhpStorm runs within Java Virtual Machine which is limited by RAM on its start. You can allow PhpStorm to use more RAM via Help > Diagnostic > Change memory settings. 1500 or 2000 is usually enough for all kinds of projects.

0

Please sign in to leave a comment.