增加一行程式碼讓 PHP Composer 效率爆增

可以直接看 GitHub 上的 commit log:「Disable GC when computing deps, refs #3482」。

      */
     public function run()
     {
+        gc_disable();
+
         if ($this->dryRun) {
             $this->verbose = true;
             $this->runScripts = false;

下面變成祭典了 XDDD

然後依照「Avoid generating duplicate conflict rules by naderman · Pull Request #3482 · composer/composer」這邊的測試 (要看下面的討論),設 zend.enable_gc=0 會省的更多,效率用倍數在跳的...

因為 Composer 的效率為人詬病很久了,這次有人暴發出來,會讓一群人投入資源找更多 optimization... XD

This entry was posted in Computer, Murmuring, Programming, Software and tagged , , , , . Bookmark the permalink.

One Response to 增加一行程式碼讓 PHP Composer 效率爆增

  1. Pingback: 加速 PHP Composer 執行效率 | 小惡魔 - 電腦技術 - 工作筆記 - AppleBOY

Leave a Reply

Your email address will not be published. Required fields are marked *