Idea: Calculating checksum only for the same path and file size

Discuss new features and functions
Posts: 4
Joined: 21 Sep 2021

kglukhov

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.
User avatar
Posts: 2451
Joined: 22 Aug 2012

Plerry

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.
Posts: 4
Joined: 21 Sep 2021

kglukhov

Checksum is just a concept. Dou you compare contents of the files of different size?
User avatar
Posts: 4056
Joined: 11 Jun 2019

xCSxXenon

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

kglukhov

My point is that "Compare by Contents" should not be done on files of different size - they are different by definition.
User avatar
Posts: 4056
Joined: 11 Jun 2019

xCSxXenon

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