Re: Allocating memory / Writing large files
From: Sam Hobbs (samuel_at_social.rr.com_change_social_to_socal)
Date: 02/14/05
- Next message: George Ionescu: "Re: Calling C++ DLL from VB"
- Previous message: Rick Rothstein: "Re: How do you display character "&" properly in Labels ?"
- In reply to: Danny: "Allocating memory / Writing large files"
- Next in thread: Danny: "Re: Allocating memory / Writing large files"
- Reply: Danny: "Re: Allocating memory / Writing large files"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 14 Feb 2005 06:42:08 -0800
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.)
- Next message: George Ionescu: "Re: Calling C++ DLL from VB"
- Previous message: Rick Rothstein: "Re: How do you display character "&" properly in Labels ?"
- In reply to: Danny: "Allocating memory / Writing large files"
- Next in thread: Danny: "Re: Allocating memory / Writing large files"
- Reply: Danny: "Re: Allocating memory / Writing large files"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|