https://kotlinlang.org logo
#android
Title
# android
c

cedric

05/02/2017, 6:54 AM
I haven't run benchmarks but I'd expect that calculating MD5 and comparing them is faster than comparing all the bytes one by one
j

johnl

05/02/2017, 7:38 AM
cedric: if the timestamp can't be trusted than ok right but if it can no bytes need to be compared
c

cedric

05/02/2017, 1:43 PM
@johnl that's what I used to think but I found a few examples where just relying on the timestamps would lead to incorrect builds in certain environments (e.g. cygwin). The only way to have reliable builds across all OS is to open the files
j

johnl

05/02/2017, 11:32 PM
i figured it was a windows thing