[fpc-pascal] performance when resizing a dynamic array

Graeme Geldenhuys mailinglists at geldenhuys.co.uk
Sun Dec 4 11:28:17 CET 2016


Hi,

If I use an array to hold a list of say Integers. Is there any serious
performance penalty for resizing (growing) the dynamic array as I add
items. My point being, I don't know the number of elements I'll need
beforehand.

Regards,
  Graeme

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

My public PGP key:  http://tinyurl.com/graeme-pgp



More information about the fpc-pascal mailing list