Re: Allocating memory / Writing large files
From: Danny (NOSPAMFORdaniel_ahorn_at_yahoo.com)
Date: 02/14/05
- Next message: Danny: "Re: How to HANDLE an Access Violation error"
- Previous message: Danny: "Re: Allocating memory / Writing large files"
- In reply to: Sam Hobbs: "Re: Allocating memory / Writing large files"
- Next in thread: Sam Hobbs: "Re: Allocating memory / Writing large files"
- Reply: Sam Hobbs: "Re: Allocating memory / Writing large files"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 14 Feb 2005 16:54:26 GMT
Thanks Sam! BTW, this is an old thread and it has already been solved
(memory mapping was the preferred choice).
I know how to write a file, the question was to find the most
efficient method in order to cope with ~100MB files.
Date: Mon, 14 Feb 2005 06:42:08 -0800
Name: "Sam Hobbs" <samuel@social.rr.com_change_social_to_socal>
>See KB article 165942 ("HOWTO: Write Data to a File Using WriteFile API").
>It is another possible solution. I assume that the corresponding ReadFile
>would be easy enough to write.
>
>I am not suggesting this would work in your situation. I don't know your
>requirements well enough to know what is the best solution. For the benefit
>ot others and for your future reference, that article is worth knowing
>about.
>
>
>"Danny" <NOSPAMFORdaniel_ahorn@yahoo.com> wrote in message
>news:41fd6d38.2257426@News.Individual.NET...
>> I'm working with ~100 MB files and need the most efficient way to
>> dynamically allocate memory followed by writing it all out to a file
>> as fast as possible.
>>
>> I was thinking about using dynamic arrays, something like:
>> Dim Buffer() as Byte
>> and then redimensioning as needed.
>>
>> This memory will be filled by an external routine to which I will just
>> pass the address with VarPtr(Buffer(0)).
>>
>> Writing this out, however, is a different story. I know from past
>> experience that standard VB file routines (Put) are excruciatingly
>> slow.
>>
>> Anyway, I'd appreciate comments on both before I start. APIs based
>> solutions are not only welcome but probably necessary to get the
>> efficiency I need. Thanks!
>>
>> Danny
>>
>> (You guessed it! ;o) Remove NOSPAMFOR before emailing.)
>
>
Danny
(You guessed it! Remove NOSPAMFOR before emailing.)
- Next message: Danny: "Re: How to HANDLE an Access Violation error"
- Previous message: Danny: "Re: Allocating memory / Writing large files"
- In reply to: Sam Hobbs: "Re: Allocating memory / Writing large files"
- Next in thread: Sam Hobbs: "Re: Allocating memory / Writing large files"
- Reply: Sam Hobbs: "Re: Allocating memory / Writing large files"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|