ST4 has a strange behaviour and high cpu loads while saving php files.
Basically, when saving a php file, ST4 will spawn a new process that goes at around ~30% (25-35%) CPU load for about ~20 seconds, after that time the new process ends and CPU load turn back to original state.
- The issue persists even in a clean install.
- Actually, the .php file doesn’t even need to have some real php code in it.
- Saving any other file extension doesn’t trigger the issue, in the repo you’ll find html, css and js.
- Changing the syntax to anything else doesn’t trigger the issue.
- Whith bigger projects the problem is obviously more noticeable (higher cpu loads and longer duration).
- ST3 doesn’t seems to have this issue, even though there are some CPU load spikes upon saving the are usually both smaller (around +10%) and faster (~1 second).
I setted up a testing repository to replicate the issue.