Browse Source

Only run verify_heap_property on each extract if run_sanity is 1

Ian Goldberg 1 year ago
parent
commit
baddbdd512
1 changed files with 3 additions and 3 deletions
  1. 3 3
      heap.cpp

+ 3 - 3
heap.cpp

@@ -759,9 +759,9 @@ void Heap(MPCIO & mpcio,  const PRACOptions & opts, char ** args) {
         std::cout << "minval_reconstruction = " << minval_reconstruction << std::endl;
         #endif
         
- 
-        tree.verify_heap_property(tio, yield);
- 
+        if (run_sanity == 1) {
+            tree.verify_heap_property(tio, yield);
+        }
          
         #ifdef HEAP_VERBOSE
         tree.print_heap(tio, yield);