Re: Newbie: In memory 4 times bigger?
- Posted by Pete Lomax <petelomax at blueyonder.co.uk> Feb 15, 2005
- 499 views
On Mon, 14 Feb 2005 18:26:52 -0800, "Brent W. Hughes" <guest at RapidEuphoria.com> wrote: >Am I correct in assuming that if a file is 1000 bytes big on disk, >that when it is read into memory (with get_bytes()), it will take up >4000 bytes of memory? Yes. If you /really/ wanted to, you could quite easily allocate some memory, CreateFile, ReadFile, CloseHandle, and peek and poke at it, or even use file mapping. But don't expect it to be any faster. Perform some experiments on large files (using standard Euphoria methods) before reaching any conclusion, or are you already experiencing a problem? Pete