[fpc-pascal] performance when resizing a dynamic array

Graeme Geldenhuys mailinglists at geldenhuys.co.uk
Sun Dec 4 16:06:18 CET 2016


On 2016-12-04 14:10, Dmitry Boyarintsev wrote:
> You'll also need to store the actual size somewhere next to the dynamic
> array, since you can no longer rely on length()


How I'm longing for Java now. Java has a 101 different container classes
as standard. And if that was not enough, you can now mix in generics
based containers too. From Unique lists, sorted lists, filtered sets
(which stay in sync with the original list it was based from) etc. Both
Delphi and FPC are seriously lacking in the container department, though
it seems generics are helping out a lot nowadays.

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