+ delete str;
+ delete buffer;
+ buffer = NULL;
+ str = NULL;
+
+ std::cerr << "Freeing text buffers : max_mem = " << get_mem() << "\n";
+
+ std::cerr << "Number of bytes inserted : " << text_size << "\n";
+
+ std::cerr << "Calling InitTextCollection() for sf=64: ";
+ STARTTIMER();
+ tc = tcb64->InitTextCollection();
+ STOPTIMER();
+ time = GETTIME();
+ std::cerr << time << "ms, max_mem = " << get_mem() << "\n" ;
+ delete tcb64;
+ tcb64 = NULL;
+
+ file = fopen("index_64.tc","w+");
+ std::cerr << "Saving to index_64.tc ";
+ STARTTIMER();
+ tc->Save(file);
+ STOPTIMER();
+ time = GETTIME();
+ std::cerr << time << "ms, max_mem = " << get_mem() << "\n" ;
+ fclose(file);
+ delete tc;
+ tc = NULL;
+ std::cerr << "Freeing memory : max_mem = " << get_mem() << "\n";
+
+ std::cerr << "Calling InitTextCollection() for sf=5: ";
+ STARTTIMER();
+ tc = tcb2->InitTextCollection();
+ STOPTIMER();
+ time = GETTIME();
+ std::cerr << time << "ms, max_mem = " << get_mem() << "\n" ;
+ free(tcb2);
+ tcb2=NULL;
+
+
+ file = fopen("index_05.tc","w+");
+ std::cerr << "Saving to index_05.tc ";
+ STARTTIMER();
+ tc->Save(file);
+ STOPTIMER();
+ time = GETTIME();
+ std::cerr << time << "ms, max_mem = " << get_mem() << "\n";
+ fclose(file);
+ delete tc;
+ tc = NULL;
+ std::cerr << "Freeing memory : max_mem = " << get_mem() << "\n";
+ std::cerr << "Statistics: " << num_str << " strings, " << max_str << " = max length\n";
+