--- parser3/src/main/pa_string.C 2001/05/15 14:31:58 1.83 +++ parser3/src/main/pa_string.C 2001/05/15 15:51:05 1.85 @@ -5,7 +5,7 @@ Author: Alexander Petrosyan (http://design.ru/paf) - $Id: pa_string.C,v 1.83 2001/05/15 14:31:58 parser Exp $ + $Id: pa_string.C,v 1.85 2001/05/15 15:51:05 parser Exp $ */ #include "pa_config_includes.h" @@ -23,20 +23,8 @@ #include "pa_table.h" #include "pa_threads.h" -#include "pa_sapi.h" -#define STRING_STAT_MAX_PIECES 1000 -int string_stat_pieces[STRING_STAT_MAX_PIECES]; -void log_string_stats(Pool& pool) { - for(int i=0; icount+last_chunk->count*CR_GROW_PERCENT/100; + size_t new_chunk_count=last_chunk->count+CR_GROW_COUNT; last_chunk=static_cast( malloc(sizeof(size_t)+sizeof(Chunk::Row)*new_chunk_count+sizeof(Chunk *))); last_chunk->count=new_chunk_count; @@ -70,7 +51,6 @@ void String::expand() { } String::String(const String& src) : Pooled(src.pool()) { - string_stat_pieces[0]++; head.count=CR_PREALLOCATED_COUNT; size_t src_used_rows=src.fused_rows;