Skip to content

phpstan/phpstan pack resolves with a single thread only #2424

@Byron

Description

@Byron

Discussed in #2422

Originally posted by homersimpsons February 7, 2026
Today I gix clone https://github.com/phpstan/phpstan.git and it took ~20 minutes:

❯ gix clone https://github.com/phpstan/phpstan.git
 13:49:18 indexing done 100.7K objects in 850.33s (118.0 objects/s)             
 13:49:18 decompressing done 18.3GB in 850.33s (21.5MB/s)                       
 13:54:35     Resolving done 100.7K objects in 317.26s (317.0 objects/s)        
 13:54:35      Decoding done 160.2GB in 317.27s (504.9MB/s)                     
 13:54:35 writing index file done 3.3MB in 0.03s (130.2MB/s)                    
 13:54:35  create index file done 100.7K objects in 1167.72s (86.0 objects/s)   
 13:54:36          read pack done 6.9GB in 1167.94s (5.9MB/s)                   
 13:54:36           checkout done 786.0 files in 0.13s (6.0K files/s)           
 13:54:36            writing done 67.8MB in 0.13s (521.7MB/s)   

(note that was on wifi and around 5MB/s for "half" of the download and then 30MB/s for the other "half")

I hence ran git clone https://github.com/phpstan/phpstan.git to compare the results:

time git clone https://github.com/phpstan/phpstan.git
Cloning into 'phpstan'...
remote: Enumerating objects: 100714, done.
remote: Counting objects: 100% (15/15), done.
remote: Compressing objects: 100% (12/12), done.
remote: Total 100714 (delta 3), reused 8 (delta 3), pack-reused 100699 (from 1)
Receiving objects: 100% (100714/100714), 6.43 GiB | 21.10 MiB/s, done.
Resolving deltas: 100% (66589/66589), done.

real	7m6.327s
user	19m56.695s
sys	0m56.571s

Metadata

Metadata

Assignees

No one assigned

    Labels

    acknowledgedan issue is accepted as shortcoming to be fixedhelp wantedExtra attention is neededreproducedThe issue could be reproduced by someone who would be able to fix it.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions