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

perf(install): Avoid checking all files for unlink persisted data #4681

Merged
merged 7 commits into from
Feb 25, 2022

Conversation

younger-1
Copy link
Contributor

@younger-1 younger-1 commented Jan 21, 2022

Description

My commit involved two changes:

  1. when uninstall or reset , avoid checking all files for unlink persisted data in function unlink_persist_data. It will take a long time to check all the files when the contains a great deal of files by itself or would produce many new file in the daily usage. For example: miniconda3 and anaconda3 kick in above two situation and would produce many new hard-link file when installing new environments.

  2. when shim, add -CommandType:Application option to git. This is not that vital but it could cause problem if git is defined as a powershell function by user like me

Motivation and Context

How Has This Been Tested?

I reset all my scoop apps (every kinds of app from every kinds of bucket, 482 apps in total), and the whole process worked well.

Checklist:

  • I have read the Contributing Guide.
  • I have updated the documentation accordingly.
  • I have updated the tests accordingly.

@niheaven
Copy link
Member

You should add a CHANGLOG entry, thanks. and I'm on vacation soon, so the reviewing time may be longer.

@younger-1
Copy link
Contributor Author

Sorry for late replying, I will add it.

@niheaven niheaven linked an issue Feb 7, 2022 that may be closed by this pull request
@younger-1
Copy link
Contributor Author

Forget to mention after changelog updated 🥲 . All things looks right now. Could you merge this? @niheaven

niheaven
niheaven previously approved these changes Feb 24, 2022
niheaven
niheaven previously approved these changes Feb 24, 2022
CHANGELOG.md Outdated Show resolved Hide resolved
@rashil2000
Copy link
Member

LGTM

Co-authored-by: Rashil Gandhi <46838874+rashil2000@users.noreply.github.com>
@niheaven niheaven changed the title perf(uninstall/reset): avoid checking all files for unlink persisted data perf(install): Avoid checking all files for unlink persisted data Feb 25, 2022
@niheaven niheaven merged commit 4047d69 into ScoopInstaller:develop Feb 25, 2022
niheaven added a commit that referenced this pull request Feb 26, 2022
niheaven added a commit that referenced this pull request Feb 26, 2022
se35710 pushed a commit to se35710/scoop that referenced this pull request Mar 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

reset takes too much time
3 participants