Autor Beitrag
|\/|_/\_><
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 18



BeitragVerfasst: Do 21.04.05 17:20 
Hi,
weiß jemand, wieviele Einträge ich mit TList speichern kann? Da ich mit einem Integerwert auf die Einträge zugreifen kann, nehme ich mal an, dass die Anzahl begerenz ist. Gibt es eine vorgefertige verkettete Liste, die unbegrenzt viele Einträge speichern kann? - Oder zumindest sehr viele?

danke im Vorraus!

Gruß
delfiphan
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2684
Erhaltene Danke: 32



BeitragVerfasst: Do 21.04.05 17:23 
So viele bis kein zusammenhängender Memoryblock mehr im Virtual Memory zu finden ist. Und das passiert bevor du den grössten Integerwert erreichst.

[OT]Persönliche Bemerkung: Ich würde deinen Namen ändern lassen, bevor es zu spät ist ;)[/OT]
|\/|_/\_>< Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 18



BeitragVerfasst: Do 21.04.05 20:01 
Das mit der begrenzten TList, habe ich mir schon gedacht. Wie sieht es damit aus:

Zitat:
Gibt es eine vorgefertige verkettete Liste, die unbegrenzt viele Einträge speichern kann? - Oder zumindest sehr viele?


thx!
delfiphan
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2684
Erhaltene Danke: 32



BeitragVerfasst: Do 21.04.05 20:10 
Ich denke in eine TList bringst du mehr Daten rein als in eine verkettete Liste, die pro Eintrag noch zusätzlich 1 bzw. 2 Pointer speichern müssen. Etwas Vorgefertigtes gibt es soweit ich weiss nicht. Such mal im Forum nach Suche in: Delphi-Forum, Delphi-Library TLINKLIST.
|\/|_/\_>< Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 18



BeitragVerfasst: Do 21.04.05 20:23 
Hm - das heißt es gibt keine fertige Liste, die 200.000 Einträge speichern kann?
delfiphan
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2684
Erhaltene Danke: 32



BeitragVerfasst: Do 21.04.05 20:27 
Doch, ich denke einige Mio Einträge sollten kein Problem sein...
Quivadis
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 314

UBUNTU 9.04
D2005 PERS, JAVA, D7 Pers.
BeitragVerfasst: Do 21.04.05 20:28 
ich dachte Tlist hat eine grenze bei ca 16.300 Einträgen.

_________________
Wissen ist macht, nichts wissen macht auch nichts. ODER: Wer nichts weis, kann nichts vergessen.
|\/|_/\_>< Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 18



BeitragVerfasst: Do 21.04.05 21:09 
sowas hätte ich jetzt auch erwartet, Integer ist ja vor einer Millionen beschränkt, oder?
delfiphan
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2684
Erhaltene Danke: 32



BeitragVerfasst: Do 21.04.05 21:11 
Integer geht bis ungefähr 2 Millarden.

classes.pas:
34 const
35
36 { Maximum TList size }
37
38   MaxListSize = Maxint div 16;
|\/|_/\_>< Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 18



BeitragVerfasst: Do 21.04.05 21:25 
ok - hast gewonnen :)