Domino 9 und frühere Versionen > ND6: Entwicklung
Wie performant sind Listen?
pippo:
Hallo,
wenn ich NOtesdocumente in Listen ablege, um später darauf zuzugreifen, wie wird das im Speicher abgelegt?
--------------------------------------------------
Dim listDoc List As NotesDocument
Set listDoc(doc.ID...) = doc
...
--------------------------------------------------
habe verschiedene Test gemacht, und mir kommt vor, dass ich damit schneller bin, als wenn ich jedesmal über getdoc... das Doc hole.
schönen Tag
Thomas Schulte:
Das ist logisch das die schneller sind.
Schließlich legst du das Doc dann ja direkt im Speicher ab.
pippo:
Ja, OK.
Aber: wenn die Docs nun auch mehrere MB groß sind???
Wird da alles im Speicher abgelegt?
Auch der INhalt der Richtextfelder?
Oder wird da was referenziert?
schönen TAG
Glombi:
Sieh mal hier:
http://www.nsftools.com/tips/PerfTips.htm
Use DocumentCollections
If you're working with a large number of NotesDocuments, don't create an array or list of NotesDocument objects -- this uses a lot of memory. Either use a DocumentCollection/NotesDocumentCollection or create an array/list of NoteIDs and access the documents as needed using the NoteIDs.
Ich würde die Dokumente auch nicht im Speicher halten.
Der Titel "Wie performant sind Listen?" ist etwas irreführend. Listen an sich sind eine tolle Sache, insb, wenn man etwas dynamisch machen will. Dann haben die gegenüber Redim (Preserve) Arrays echte Vorteile.
Andreas
pippo:
OK - schönen TAG
Navigation
[0] Themen-Index
[#] Nächste Seite
Zur normalen Ansicht wechseln