static-php-cli icon indicating copy to clipboard operation
static-php-cli copied to clipboard

[RFC] 3.0 Updates - Parallel Building and Downloading

Open crazywhalecc opened this issue 2 months ago • 12 comments

[RFC] 3.0 Updates - Parallel Building and Downloading

static-php-cli 2.x has downloader for all sources, but downloading them one by one is quite slow.

It's best to support parallel downloads by default:

  1. Calculating download artifacts
  2. Queue download sources
  3. Use fiber to call curl or git

For building, it's more complicated than downloading, since it depends on the dependency tree structure calculated by builder input, and make command always use -j$(nproc) to use all cores simuteniously, we may only reduce several minutes when parallel configuring.

If you have any question or have better suggestions, please leave comment here with quote.

crazywhalecc avatar Nov 05 '25 06:11 crazywhalecc