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

etc: Major runtime impact due to find at system root for large and ne… #6106

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rpriyadarshi
Copy link

Major runtime impact due to find at system root for large and network mounts took hours to complete if left alone. More likely, the user would terminate the script thinking something is wrong.

  1. Added a wait cursor to give visual feedback to the user.
  2. Now mitigates runtime using locate if available.

…twork mounts now has a wait cursor and mitigates runtime using locate if available.
@@ -274,7 +411,7 @@ _installOrTools() {

# Disable exit on error for 'find' command, as it might return non zero
set +euo pipefail
LIST=($(find / -type f -name "libortools.so*" 2>/dev/null))
_searchEverywhere --update-db --file-pattern "libortools.so*"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

--update-db will trigger sudo updatedb even if locate isn't installed. This should not be required in that case.

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.

2 participants