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

Replace calls to ls and rm with perl functions. #42

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

rapier1
Copy link

@rapier1 rapier1 commented Apr 9, 2021

This avoids issues when there are too many cache files for ls to process with a wildcard. While this doesn't happen all that often I've run into problems when moving very large data sets. Especially when they had files with widely varying sizes. I think this means some of the checks for too many cache files can be removed as well but I just wanted to submit the basics at this point. I haven't seen any notable performance issues even when processing 50,000 cache files.

I also removed trailing whitespace from some of the line (M-x delete-trailing-whitespace in emacs).

Chris Rapier added 2 commits April 9, 2021 12:36
This avoids issues when there are too many cache files for ls to process with a wildcard.
The new method of counting the number of cache files makes this unnecessary.
@hjmangalam
Copy link
Owner

hjmangalam commented Apr 9, 2021 via email

@rapier1
Copy link
Author

rapier1 commented Apr 9, 2021 via email

@hjmangalam
Copy link
Owner

hjmangalam commented Apr 13, 2021 via email

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