-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
2.0.11 is scanning every single file while 2.0.8 is not #9760
Comments
Not sure what you mean by "scanning", and definitely can not reproduce such slowness.. Also running Here is the full changelog for 2.0.9 as that seems to contain the cause it's relevant 2.0.8...2.0.9 - but hard to pinpoint it any further given the lack of info here. |
i am running "composer -h -vvv" nothing more. i am running it inside a project with many files and lot installed packages. while watching with strace i can see that composer is reading, opening, scanning, touching - however you want to call it, "every single PHP file" of my project, while 2.0.8 is not. that's reproducible for me - i am not able to identify the single commit out of 76 which might cause this, that´s why i wrote here in hope, someone has a clue.... |
Can you try with |
And for the record, for me this runs in 0.1sec so already your 17 seconds on 2.0.8 seems insanely slow. |
when u are a windows user who is using vmware to have a real linux and using a shared mount for your code to see that inside your Linux, you are doomed anyway.. so reading many small files is bad as hell anyway... we don´t have to discuss who stupid that is, but it has nothing to do with the fact, that every composer version above 2.0.8 is touching, opening, reading, scanning every single file inside my project. maybe that is wanted, maybe not, i don´t know. but for everybody who is dealing with shared mounts, that is pure horror. so i am trying to find out, if this is intended or wanted because of some reasons i don´t understand, or if that is not intended and more seen as a bug. |
with |
so when using
as soon composer prints
that´s the point in time where scanning all of my files begins.... i don´t really know where |
@Seldaek your hint with thanks a lot ! |
Just to reply to:
IMO that's not a necessity anymore.. I use Windows + WSL2 and run stuff natively on Linux there, all code is in WSL and everything runs very fast. The only catch is it slows down the editor a little if you run the editor on the Windows side of things. |
I went through all of that, there is always something that is not working or ruins your day. phpstorm does not support docker 100% remote, they still live in that world where everything is local host (plenty of discussions I had with them about that)... either the tools inside your vm are running smooth or your windows tools, but never both, when dealing with hundrest (or thousands) little files, as said, pure horror. it doesn't play a role if you use vmware shares or wsl2 shares, share is share, and as long there is no nativ access from windows side to a Unix file system without any extra layer between, windows users will always have to deal with a downside, doesn't matter on which side. this issue here reminded me painfully. for instance: my windows backup software is not able to mount or access a wsl2 path, so I would need to run samba inside my vm only to be able to backup that files, the whole concept with wsl2 made progress in the last years, but if everybody is honest to himself, being a windows user in a php world is a pain in the.... 😞 and there are plenty more examples... |
As far as I can tell, PhpStorm added WSL2 support in 2020.2 or something.. And 2021.1 EAP seems to also fix a few more things, so there's hope :) Anyway for me that work way better/smoother than having the overhead of a VM. And FWIW regarding WSL2 backups, I use SyncBackPro which does support reading directly into |
hi,
i don´t really understand why. when running "-vvv -h" i can see with a strace, that 2.0.11 is scanning "every single file" in my project while showing this:
Reading /home/myproject/vendor/composer/installed.json
while 2.0.8 is NOT.
so a simple "-h" takes:
2.0.8: 17 seconds
2.0.11: 2 minutes and 45 seconds
1.10.20: 11 seconds (btw)
is there a major change between these versions i have missed ?
i should mention: i am running composer via docker (Linux).
update: 2.0.9 behaves like 2.0.11 -> scanning every single file 😕
The text was updated successfully, but these errors were encountered: