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

Hash-based .nib files #38

Open
lfkeitel opened this issue Jul 24, 2019 · 0 comments
Open

Hash-based .nib files #38

lfkeitel opened this issue Jul 24, 2019 · 0 comments
Labels
Improvement Non-bug fixes whether runtime changes or just formatting

Comments

@lfkeitel
Copy link
Collaborator

Right now, .nib files are always checked to see if they match their source file. Only the modification time is checked. This may cause problems if a file is edited quickly, or a file is renamed but has the same timestamp. Hash-based nibs will detect even the smallest of changes, but at the expense of speed. Calculating even a sha1 hash takes time though it's probably negligible. This could be an optional mode of nib generation.

The current nib format should be updated to contain the size of a source file as well as the timestamp. The size would typically detect changes when files are moved around with the same timestamps.

@lfkeitel lfkeitel added the Improvement Non-bug fixes whether runtime changes or just formatting label Jul 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Improvement Non-bug fixes whether runtime changes or just formatting
Projects
None yet
Development

No branches or pull requests

1 participant