Re: Newbie: In memory 4 times bigger?

new topic     » goto parent     » topic index » view thread      » older message » newer message

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

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu