Skip to content
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

Use an equivalent lockfile for v1 #2

Merged
merged 1 commit into from
Sep 3, 2020
Merged

Conversation

borekb
Copy link
Owner

@borekb borekb commented Sep 3, 2020

This dramatically affects times for the v1 install, increasing it from 25s to 60s. This makes Yarn 2 installs faster as it is around 40s on my machine.


The issue was that originally, the packages-v1 folder was created as a copy of packages-v2 and running yarn in it to "downgrade" the yarn.lock file to v1. However, Yarn doesn't downgrade formats – it basically recreated yarn.lock freshly, which lead to a much simpler install structure. That made the comparison unfair.

It was spotted by @larixer – thanks a lot! See Discord chat.

This dramatically affects times for the v1 install, increasing it from 25s to 60s. (The v2 install is ~40s.)
@borekb borekb merged commit 71f8fd7 into master Sep 3, 2020
@borekb borekb deleted the equivalent-v1-lockfile branch September 3, 2020 07:31
@borekb borekb mentioned this pull request Sep 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant