Przeglądaj źródła

Changed DTable from a 'map' to 'unordered_map'.

This significantly improves the dpnode performance.
Steven Engler 8 lat temu
rodzic
commit
09eabac201
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      dpnode.cc

+ 2 - 2
dpnode.cc

@@ -10,7 +10,7 @@ extern "C" {
 #include <arpa/inet.h>
 
 #include <set>
-#include <map>
+#include <unordered_map>
 #ifdef LOG_MEM
 #include <stdio.h>
 #endif
@@ -31,7 +31,7 @@ extern "C" {
 static ofstream dp_file_stream;
 #endif
 
-typedef map<std::string, pair<ZZ,ZZ> > DTable;
+typedef unordered_map<std::string, pair<ZZ,ZZ> > DTable;
 
 typedef enum {
     DPSTATE_START,