zephir-lang / zephir

Zephir is a compiled high-level language aimed to ease the creation of C-extensions for PHP
https://zephir-lang.com
MIT License
3.3k stars 466 forks source link

0.16.3 Compilation speed is very slow #2395

Closed xqkeji closed 1 year ago

xqkeji commented 1 year ago

Every time I compile, I feel like I have to empty before compiling. What's the matter?

for Example: zephir build Zephir version has changed, use "zephir fullclean" to perform a full clean of the project Zephir version has changed, use "zephir fullclean" to perform a full clean of the project Preparing for PHP compilation... Preparing configuration file... Compiling... Zephir version has changed, use "zephir fullclean" to perform a full clean of the project Installing...

Extension installed.

! [NOTE] Don't forget to restart your web server

Jeckerson commented 1 year ago

Use -j flag to run all in parallel all your cores. Example with x32 threads (x16 CPU cores):

zephir build -j32