diff options
author | Timo Weingärtner <timo@tiwe.de> | 2011-12-02 20:23:18 +0100 |
---|---|---|
committer | Timo Weingärtner <timo@tiwe.de> | 2011-12-25 18:48:34 +0100 |
commit | a40bb6e7fd6e74e8b2d2222bba9421b580577e8e (patch) | |
tree | d34a5e2330d53b964d0ec8276177c35ccc84750b | |
parent | cffdf8acae2b5f985eeb81cb6e0a5bbd218b9d32 (diff) | |
download | hadori-a40bb6e7fd6e74e8b2d2222bba9421b580577e8e.tar.gz |
also use unordered_map for sizes
-rw-r--r-- | hadori.C | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -4,7 +4,6 @@ namespace po = boost::program_options; #include <string> #include <vector> #include <queue> -#include <map> #include <unordered_map> #include <iostream> #include <sstream> @@ -57,7 +56,7 @@ void do_link (inode const & i, std::string const & other) { void handle_file(std::string const & path, struct stat const & s) { static std::unordered_map<ino_t, inode const> kept; static std::unordered_map<ino_t, ino_t> to_link; - static std::multimap<off_t, ino_t> sizes; + static std::unordered_multimap<off_t, ino_t> sizes; debug << "examining " << path << std::endl; if (kept.count(s.st_ino)) { |