Author Topic: use a project on ramdisk  (Read 5152 times)

Offline MoonKid

  • Almost regular
  • **
  • Posts: 180
use a project on ramdisk
« on: February 23, 2006, 08:36:50 pm »
I want to use my project on ramdisk.
For that I need a to copy the project to ramdisc if I open it, an copy it to harddisc if I save and close it.

In the project settings could be two fields for "command before open" and "command after close". I can start scripts with it.

Is it possible now?
Would this be needfull for C::B, so I can make a feature request?

Offline Game_Ender

  • Lives here!
  • ****
  • Posts: 551
Re: use a project on ramdisk
« Reply #1 on: February 23, 2006, 09:54:11 pm »
You can already do this with a simple batch file.  Just run it instead of codeblocks.  Every time the batch files is run it copies your "project" (which I assume include all your source files too) to your Ram disk, then invokes codeblocks with your project file name as a command line parameter.  On the next line on the batch file just have a command to copy all the files back.  This line won't be run untill you close codeblocks.

GLfoat

  • Guest
Re: use a project on ramdisk
« Reply #2 on: February 23, 2006, 09:58:31 pm »
I want to use my project on ramdisk.
For that I need a to copy the project to ramdisc if I open it, an copy it to harddisc if I save and close it.

In the project settings could be two fields for "command before open" and "command after close". I can start scripts with it.

Is it possible now?
Would this be needfull for C::B, so I can make a feature request?

indeed, i wonder how coldblocks could exist without this feature until now !

maybe we could have a feature to copy coldbocks itself into the ramdisk to speed up the starting process ?
if any of the very helpfull peple here would help me, i could make a feater requist, i read about this in an other posting
« Last Edit: February 23, 2006, 10:03:10 pm by GLfoat »

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: use a project on ramdisk
« Reply #3 on: February 23, 2006, 10:33:44 pm »
Why would anyone want to use a ramdisk, anyway?

Or are you talking about something like Gigabyte's i-Drive?
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

Offline Michael

  • Lives here!
  • ****
  • Posts: 1608
Re: use a project on ramdisk
« Reply #4 on: February 24, 2006, 12:34:09 am »
indeed, i wonder how coldblocks could exist without this feature until now !

Ehm....CodeBlocks and not coldblocks..... :roll:

Anyway, who are/would using/use a ram disk now (as thomas said) :?? I had the possibility to create a ram disk on my "relatively" old Mac, but on PC...

Best wishes,
Michael

Offline MoonKid

  • Almost regular
  • **
  • Posts: 180
Re: use a project on ramdisk
« Reply #5 on: February 24, 2006, 03:16:43 pm »
Why would anyone want to use a ramdisk, anyway?

Because the build process is faster then.