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

stats: add --cache-threshold autoindex creation/deletion logic #1809

Merged
merged 4 commits into from
May 10, 2024

Conversation

jqnatividad
Copy link
Owner

As stats runs much faster with an index as it enables multithreading, when --cache-threshold is negative, it enables autoindex creation when the input's size is greater than the absolute value of the --cache-threshold argument in bytes.

However, some users may not want the index file to hang around after computing stats, so when the --cache-threshold negative arg ends with a 5, stats now also auto-deletes the index file it auto-created.

- now supports `-c` shortcut
- added ability to specify a negative arg. When doing so, if input file size is > abs of negative arg in bytes, an index is automatically created (as it greatly accelerates stats) AND forces caching
Added addl logic to remove auto-created index if the `--cache-threshold` arg ends with a 5.
@jqnatividad jqnatividad changed the title stats: add --cache-threshold "negative" logic stats: add --cache-threshold autoindex creation/deletion logic May 10, 2024
@jqnatividad jqnatividad merged commit fe9c052 into master May 10, 2024
15 checks passed
@jqnatividad jqnatividad deleted the stats-cache-threshold-negative branch May 18, 2024 01:54
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.

None yet

1 participant