[fpc-pascal] Growing dynamic arrays performance (another thing)

2008-07-21 Thread L
> Is there a canonical way to reserve memory for a dynamic array? > > When there are several slowly growing dynamical arrays I encountered > severe > performance drop (probably, they tried to overlap each other many > times). > > Setting estimated length and navigating with extra counter inside ea

[fpc-pascal] Growing dynamic arrays performance (another thing)

2008-07-11 Thread Пётр Косаревский
Is there a canonical way to reserve memory for a dynamic array? When there are several slowly growing dynamical arrays I encountered severe performance drop (probably, they tried to overlap each other many times). Setting estimated length and navigating with extra counter inside each of them (a