--- parser3/src/main/Attic/pa_array.C 2001/05/16 16:48:56 1.33 +++ parser3/src/main/Attic/pa_array.C 2001/05/17 19:33:33 1.35 @@ -5,39 +5,16 @@ Author: Alexander Petrosyan (http://design.ru/paf) - $Id: pa_array.C,v 1.33 2001/05/16 16:48:56 parser Exp $ + $Id: pa_array.C,v 1.35 2001/05/17 19:33:33 parser Exp $ */ -#include "pa_config_includes.h" - #include "pa_pool.h" #include "pa_array.h" #include "pa_exception.h" #include "pa_common.h" -#include "pa_sapi.h" -#define ARRAY_STAT_MAX_PIECES 1000 -int array_stat_pieces[ARRAY_STAT_MAX_PIECES]; -void log_array_stats(Pool& pool) { - for(int i=0; i( @@ -53,13 +30,6 @@ Array::Array(Pool& apool, int initial_ro } void Array::expand(int chunk_rows) { - { - int index=min(++expand_times, ARRAY_STAT_MAX_PIECES-1); - if(index) - array_stat_pieces[index-1]++; - array_stat_pieces[index]++; - } - Chunk *chunk=tail=static_cast( malloc(sizeof(int)+sizeof(Chunk::Row)*chunk_rows+sizeof(Chunk *))); chunk->count=chunk_rows; @@ -76,13 +46,6 @@ Array& Array::operator += (Item *src) { append_here->item=src; append_here++; fused_rows++; - { - int index=min(fused_rows, ARRAY_STAT_MAX_LEN-1); - if(index) - array_stat_lens[index-1]++; - array_stat_lens[index]++; - } - return *this; }