🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #12735

Re: A file in memory

#12735
From: Antonio Farfan
Date: Wed, 19 Nov 2003 14:57
24 lines
1935 bytes
Ok, Thanks, but, the file is created yet. I am only open and read. Are there
any optimization for this case?

"Leo Havm�ller" <leh@-nospam-rtx.dk> escribi� en el mensaje
news:3fbb7699$1@newsgroups.borland.com...
> "Antonio Farfan" <amfm0777@hotmail.com> wrote in message
> news:3fbb2ba8@newsgroups.borland.com...
> > Hi everybody:
> >   When i open one file, all the content of this file is load in the
> memory?,
> > and if the answer is not, could be
> > done?. The idea is load all the file in the memory to decrement the time
> of
> > access of one application to
> > this file, (size of file is 8MB, and it is always read by the
> application.).
>
> The FILE_FLAG_SEQUENTIAL_SCAN attribute for CreateFile is intended for
> exactly this optimization.
> See http://msdn.microsoft.com/library/en-us/fileio/base/createfile.asp.
>
> Leo Havm�ller.
>
>
Technical Details
Message-ID: <3fbb8546@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!news-out1.nntp.be!propagator2-sterling!news-in-sterling.newsfeed.com!ptdnetS!newsgate.ptd.net!small1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <3fbb2ba8@newsgroups.borland.com> <3fbb7699$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 10cc67,dd3ffa1ba297c535
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-11-19 07:11:12 PST
From: "Antonio Farfan" <amfm0777@hotmail.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3fbb2ba8@newsgroups.borland.com> <3fbb7699$1@newsgroups.borland.com>
Subject: Re: A file in memory
Date: Wed, 19 Nov 2003 15:57:02 +0100
Lines: 26
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4927.1200
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4927.1200
NNTP-Posting-Host: 62.15.230.33
Message-ID: <3fbb8546@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1069253958 62.15.230.33 (19 Nov 2003 06:59:18 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!news-out1.nntp.be!propagator2-sterling!news-in-sterling.newsfeed.com!ptdnetS!newsgate.ptd.net!small1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail