Article View: borland.public.cppbuilder.nativeapi
Article #12732Re: A file in memory
From: Antonio Farfan
Date: Wed, 19 Nov 2003 11:58
Date: Wed, 19 Nov 2003 11:58
38 lines
2104 bytes
2104 bytes
Ok, then when you say load all the file in one bufer, i suppose that i need do some calls that they work over this buffer, and the application use these calls to read the file instead of the application (as now) work directly over the API open,read etc. isn�t it? Another ask, could this improvement affect very much to the time of read? thanks for all "Hans Galema" <dontusethis@dontusethis.nl> escribi� en el mensaje news:3fbb5836@newsgroups.borland.com... > Antonio Farfan wrote: > > > When i open one file, all the content of this file is load in the memory?, > > No, the OS buffers a part of the file. One time windows did about > 64 Kbyte. But maybe this is more and adjustable now. > > > and if the answer is not, could be > > done?. > > Then you have to do it yourself. > > > 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.). > > Perhaps this is a bad idea. > > Determine the size of the file, declare a buffer of that size > and open and load the file in the buffer, close the file. > > Hans. >
Technical Details
Message-ID:
<3fbb5b57$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<3fbb2ba8@newsgroups.borland.com> <3fbb5836@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 04:09:27 PST From: "Antonio Farfan" <amfm0777@hotmail.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <3fbb2ba8@newsgroups.borland.com> <3fbb5836@newsgroups.borland.com> Subject: Re: A file in memory Date: Wed, 19 Nov 2003 12:58:08 +0100 Lines: 40 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: <3fbb5b57$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1069243223 62.15.230.33 (19 Nov 2003 04:00:23 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail