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

How does a change in --hash-fn impact the --cache? [documentation] #192

Open
patrickwolf opened this issue Mar 30, 2023 · 2 comments
Open
Labels
documentation Improvements or additions to documentation

Comments

@patrickwolf
Copy link

It's not clear from the documentation how an existing cache is impacted by a change in --hash-fn

  • ie will files already cache be ignored (not desired)?
  • will they be re-evaluated?
  • what happens if i switch back to the old hash will it need to be redone? or does the db store both?
  • will the new hash be used for start/end hashing of a file or only for content hashing? (seems like only for content is more efficient as the pre grouping can happen via the cache)

Thanks for answering here and or updating the documentation!

related ticket: #153

@patrickwolf
Copy link
Author

from testing it seems like

  • changing the hash only effects the content hashing all other steps are still cached
  • the cache file keeps the results of multiple hash algorithms ie one can be fully cached while the other still needs to be processed

@pkolaczk
Copy link
Owner

Yup, the hash algorithm is part of the key of the cache. So it maintains a separate hash cache for each algorithm.

@pkolaczk pkolaczk added the documentation Improvements or additions to documentation label Apr 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants