Newsgroups : Borland : borland.public.delphi.rtl.win32 : 2008 Apr : Safest / fastest way to handle big blocks of memory

www.cryer.info
Managed Newsgroup Archive

Safest / fastest way to handle big blocks of memory

Subject:Safest / fastest way to handle big blocks of memory
Posted by:"Andrew Fiddian-Green" (..@dd)
Date:Sat, 26 Apr 2008 12:45:47

Hi,

I am working on an application that needs to manipulate big blocks of
data in memory, 50MB .. 500MB in size.

Are there any guidelines concerning which memory allocation mechanism is
a) the fastest, and b) least likely to fail on resource limited
machines? I can see at least the following options:

1) TMemoryStream
2) array of byte
3) GetMem
4) Alloc
5) GlobalAlloc
6) IStream

Any ideas?

Regards,
AndrewFG

Replies:

www.cryer.info
Managed Newsgroup Archive