eAcceleratorなるものを発見。早速導入。
eAccelerator is a further development from mmcache PHP Accelerator & Encoder. It increases performance of PHP scripts by caching them in compiled state, so that the overhead of compiling is almost completely eliminated.
スクリプト言語であるphpをあらかじめコンパイル済みの中間コードにしておいてくれるとのこと。
そりゃぁ便利じゃん。いいじゃん。
スクリプト言語の手軽さと、コンパイル言語の軽快な動作が両方できちゃう、と。
もう少し試して、良さそうなら会社のサービスにも入れてしまおう。
導入そのものはyumコマンドで一発。
yum install php-eaccelerator
で終了。あとはphp.iniかphp.d/eaccelerator.iniのeaccelerator.shm_size を適当に - 私は64にセット - 入れて、httpd再起動でO.K。 これで動作が軽くなるなら万々歳である。