diff options
author | Timo Weingärtner <timo@tiwe.de> | 2013-04-23 18:28:33 +0200 |
---|---|---|
committer | Timo Weingärtner <timo@tiwe.de> | 2013-04-23 18:28:33 +0200 |
commit | 9d0562d22cef95b0db1af30e199a371670ca8050 (patch) | |
tree | 5312b89f87cbd28f674eb2bd46153da35e7dad28 /hadori.C | |
parent | fb3fe1b085b30fcc9defa8f29477226806db085b (diff) | |
download | hadori-9d0562d22cef95b0db1af30e199a371670ca8050.tar.gz |
remove hashing stuff
the cases in which that gave a speedup are rare to nonexistent
Diffstat (limited to 'hadori.C')
-rw-r--r-- | hadori.C | 4 |
1 files changed, 0 insertions, 4 deletions
@@ -105,9 +105,6 @@ void handle_file(std::string const & path, struct stat const & s) { if (not config.count("no-time")) if (candidate.stat.st_mtime != s.st_mtime) continue; - if (config.count("hash")) - if (candidate.get_adler() != f.get_adler()) - continue; if (!compare(candidate, f)) continue; verbose << "linking " << candidate << " to " << path << std::endl; @@ -190,7 +187,6 @@ int main (int const argc, char ** argv) { ("help,h", "print this help message") ("version,V", "print version information") ("no-time,t", "ignore mtime") - ("hash", "use adler32 hash to speed up comparing many files with same size and mostly identical content") ("dry-run,n", "don't change anything, implies --verbose") ("verbose,v", "show which files get linked") ("debug,d", "show files being examined") |