Mail Archives: djgpp/1999/11/10/09:53:26
On Tue, 9 Nov 1999, Frederic Cazenave wrote:
> Is there a way to change a virtual memory on disk in
> a file ?
I'm guessing that you are talking about memory-mapped files. If so,
then they are not supported in DJGPP, because the DPMI spec doesn't
provide the underlying functionality.
> In my application when I save data (transfert data from
> a ring buffer to a file on disk) I loose the new data.
> So I 'm looking for a way to put all my data on a file
> faster as possible.
An alternative would be to signal to the source of data not to send it
while you write to the disk. Yet another alternative would be to
compress the data in memory before you write it out (assuming that
comression ratio of 2:1 can make a difference in your particular
application).
- Raw text -