Idea: Calculating checksum only for the same path and file size
- Posts: 4
- Joined: 21 Sep 2021
Comparison speed by checksum can improved drastically by calculating checksum only for the same path and file size. File size comparison is already implemented, just modify the algorithm by adding checksum to the same size files.
- Posts: 2450
- Joined: 22 Aug 2012
The use of checksums is discussed many times (search.php?keywords=checksum).
FFS does not use checksums. Using checksums also does not make sense for FFS, as FFS only runs in one location (which does not even need to be the left nor right location), and in order to determine checksums FFS would need to transfer the entire files to the machine running FFS anyway. So, for FFS using checksums would not be faster than a Compare by content.
A Compare by file date and size does not depend on file content, and would therefore also not benefit from using checksums.
FFS does not use checksums. Using checksums also does not make sense for FFS, as FFS only runs in one location (which does not even need to be the left nor right location), and in order to determine checksums FFS would need to transfer the entire files to the machine running FFS anyway. So, for FFS using checksums would not be faster than a Compare by content.
A Compare by file date and size does not depend on file content, and would therefore also not benefit from using checksums.
- Posts: 4
- Joined: 21 Sep 2021
Checksum is just a concept. Dou you compare contents of the files of different size?
- Posts: 4056
- Joined: 11 Jun 2019
Plerry isn't the dev, Zenju is, so he can't answer that question, I don't think. You say checksum is "just a concept" but then what is the point of your post??
- Posts: 4
- Joined: 21 Sep 2021
My point is that "Compare by Contents" should not be done on files of different size - they are different by definition.
- Posts: 4056
- Joined: 11 Jun 2019
Gotcha, that makes more sense, but is a little different than the original. Can't say for sure if that's how it's done or not