There is a PHP script running on a VPS (via CLI). It performs very volumetric calculations, the script can work up to several days. The code is already optimized, can you do something with the server itself to speed up the calculations? The servers do not understand anything.

PHP Version => 5.4.4-14 + deb7u14

  • 2
    Rewrite the code in C / C ++, it will work ten times faster. And if you still connect the multi-threading (if possible) ... - Vladimir Martyanov
  • 3
    Switch to PHP 7, it should be faster. - Visman
  • I am writing only in php. - yevgeniyche
  • @yevgeniyche is a bad choice for high-load computing. - Vladimir Martyanov
  • what are you doing there that a few days believes. but yes, it is a bit strange to do calculations for PCP. - teran

0