Pārlūkot izejas kodu

Don't have the (b)bsearch unit test reconstruct the database to check the answer if the database is huge

Ian Goldberg 6 mēneši atpakaļ
vecāks
revīzija
f3f4e8e924
1 mainītis faili ar 6 papildinājumiem un 0 dzēšanām
  1. 6 0
      online.cpp

+ 6 - 0
online.cpp

@@ -1349,6 +1349,12 @@ static void bsearch_test(MPCIO &mpcio,
             }
             }
         }
         }
 
 
+        // Don't spend time reconstructing the database to check the
+        // answer if the database is huge
+        if (depth > 25) {
+            return;
+        }
+
         tio.sync_lamport();
         tio.sync_lamport();
         mpcio.dump_stats(std::cout);
         mpcio.dump_stats(std::cout);