Add a fast-path to skip resolution when installation is complete (#613)

For a very large resolution (a few hundred packages), I see 13ms vs.
400ms for a no-op. It's worth optimizing this case, in my opinion.
This commit is contained in:
Charlie Marsh 2023-12-12 12:43:12 -05:00 committed by GitHub
parent 3aaab32a9d
commit 4fb2e0955e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 104 additions and 12 deletions

View file

@ -161,8 +161,7 @@ fn install_requirements_txt() -> Result<()> {
----- stdout -----
----- stderr -----
Resolved 2 packages in [TIME]
Audited 2 packages in [TIME]
Audited 1 packages in [TIME]
"###);
});
@ -239,8 +238,7 @@ fn respect_installed() -> Result<()> {
----- stdout -----
----- stderr -----
Resolved 7 packages in [TIME]
Audited 7 packages in [TIME]
Audited 1 packages in [TIME]
"###);
});