Don't index empty texts
[SXSI/xpathcomp.git] / SXSIStorageInterface.cpp
index af7ba7f..e5bd7cf 100644 (file)
@@ -15,8 +15,7 @@
 SXSIStorageInterface::SXSIStorageInterface()
 {
   tree = new XMLTree();
-  tree->OpenDocument(true,64);
-  
+  tree->OpenDocument(false,64);
 }
 
 SXSIStorageInterface::~SXSIStorageInterface()
@@ -70,8 +69,5 @@ void SXSIStorageInterface::printStats(){
   std::cerr << _new_text << " calls to newText\n";
   std::cerr << _new_empty_text << " calls to newEmptyText\n";
   std::cerr << _length_text << " bytes (=" << _length_text/1024 << "kb ) added to TextCollection\n";
-  std::cerr << _heap_base << " bytes of memory (initial)\n";
-  std::cerr << _heap_parsing << " bytes of memory (during parsing)\n";
-  std::cerr << _heap_done << " bytes of memory (final)\n";
   return;
 }