md5sum_approx (fslint-2.44) | : | md5sum_approx (fslint-2.46) | ||
---|---|---|---|---|
#!/usr/bin/python | #!/usr/bin/env python2 | |||
# md5sum CHUNK_SIZE bytes of file | # md5sum CHUNK_SIZE bytes of file | |||
CHUNK_SIZE=512 #4096 for full file | CHUNK_SIZE=512 #4096 for full file | |||
# Note this takes 60% more CPU than md5sum on FC4 at least, | # Note this takes 60% more CPU than md5sum on FC4 at least, | |||
# when checksumming the whole file. | # when checksumming the whole file. | |||
# On F7 I retested it takes around 20% more CPU. | # On F7 I retested it takes around 20% more CPU. | |||
#TODO: see how kernel readahead affects this | #TODO: see how kernel readahead affects this | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added |