 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Entropia Guest
|
Posted: Fri Jun 27, 2003 2:55 pm Post subject: RAMDISK |
|
|
Hey,
Someone told me to use RAMDISK to speed up my programm, but I don't know
this at all and I do not find real usable information about it.
Does anyone know what this is, if it's worth implementing and if, how to
implement?
Thanks in advance!
Leen
|
|
| Back to top |
|
 |
Alisdair Meredith Guest
|
Posted: Fri Jun 27, 2003 3:41 pm Post subject: Re: RAMDISK |
|
|
Entropia wrote:
| Quote: | Someone told me to use RAMDISK to speed up my programm, but I don't know
this at all and I do not find real usable information about it.
Does anyone know what this is, if it's worth implementing and if, how to
implement?
|
RamDisk is an old DOS utility to treat a portion of RAM on your PC as if
it was a disk. Once you have 'mounted' this disk you can copy files
onto it, and then accessing these files simple memory access.
If your process is all that the machine needs running, and you have
quite a few read only or temporary files, you might benefit from using a
RAMdisk to hack around Windows own memory management schemes. Although
I will confess, I'm not sure whether RAMdisk-RAM is subject to swapping
along with the rest of RAM. If so, they are even less useful.
The danger of a RAMdisk is that all file access goes to RAM, not a
permanent storage medium. You will likely lose all data in event of a
power failure or system crash.
We were using RAM disks a couple of years ago on some older Win95 boxes,
not sure if they are available under NT-derived systems.
I would be very careful about trusting someone who says 'use a RAMdisk
to optimise your system' without explaining any of the details above.
It sounds like they have heard something was a good idea once, dropped a
name, and left you to work out the details. RAMdisks are very rarely
useful for a modern Windows application.
--
AlisdairM
Team Thai Kingdom
|
|
| Back to top |
|
 |
Thomas J. Theobald Guest
|
Posted: Fri Jun 27, 2003 4:13 pm Post subject: Re: RAMDISK |
|
|
If you're using DOS, yeah.
If not, don't bother. If you're really hot to deal with something strictly
in RAM, stick with a memory stream or a pointer to your own block of memory.
If you're using it a lot it won't get paged, and you should have fast access
to it.
T
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|