[fpc-devel] TList slowness in classes

Mattias Gaertner nc-gaertnma at netcologne.de
Fri Dec 24 12:42:09 CET 2004


On Fri, 24 Dec 2004 12:13:15 +0100 (W. Europe Standard Time)
Michael Van Canneyt <michael.vancanneyt at wisa.be> wrote:

> On Fri, 24 Dec 2004, Mattias Gaertner wrote:
>[...] 
> > And creates the implicit exception frame only in RaiseIndexError.
> 
> I have changed the procedure.

Talking about TList slowness:
In the last years TList and TStringList became slower and slower. Are there any alternatives in classes.pp? A simple TList providing only the very basics, less checks, no notifications, less virtuals, reordered IFs ... ?
If this TBaseList (or TSimpleList or TQuickList or THumbleList) would be the ancestor of TList, existing code could easily be improved - the user only needs to rename his TList to TBaseList. 
Or maybe give this base thing the correct name. I never understood, why Borland named it 'list'. AFAIK in computer science a list is a linked chain of elements. While TList is an dynamic array with some methods.


Mattias




More information about the fpc-devel mailing list