1
0
mirror of https://github.com/arsenetar/dupeguru.git synced 2026-02-12 07:21:37 +00:00

Switch file hashing to xxhash instead of md5

- Improves performance significantly in some cases
- Add xxhash to requirements.txt and sort requirements
- Rename md5 based members to digest
- Update all tests to use new member names and hashing methods
- Update hash db code to upgrade schema

NOTE: May consider supporting multiple hashing algorithms in the future.
This commit is contained in:
2022-03-19 15:25:46 -05:00
parent bbcdfbf698
commit 51b18d4c84
9 changed files with 194 additions and 180 deletions

View File

@@ -97,11 +97,6 @@ class MusicFile(fs.File):
"dupe_count": format_dupe_count(dupe_count),
}
def _get_md5partial_offset_and_size(self):
# No longer calculating the offset and audio size, just whole file
size = self.path.stat().st_size
return (0, size)
def _read_info(self, field):
fs.File._read_info(self, field)
if field in TAG_FIELDS: