General Feedback

NCrunch cache storage path on RAMDISK?

Started by GreenMoose on 7,751 views

Hi,

Is there any advantage, performance wise, to use the "NCrunch cache storage path" on e.g. a RAMDISK ?

Thanks.
GreenMoose wrote:Hi,

Is there any advantage, performance wise, to use the "NCrunch cache storage path" on e.g. a RAMDISK ?

Thanks.


Hi, thanks for posting!

There would be minimal advantage to this. NCrunch reads from its .cache file during initialisation and writes back to it when the engine shuts down. It uses this path to store long term data intended to exist across sessions.

Bulky amounts of test trace output are also stored in this path, where they can be read later if the tests are selected in the Tests Window.

So I would say that there may be the potential for minor performance improvement around certain activities where an increase in performance would not be likely to be noticed.
Hi,

some additional remarks from me. I also thought about that but decided against it, because of following reason.

If you consider to put the file on a RAMDisk, you have to ensure that the RAMDisk's content gets stored before a re-boot of the machine.

Otherwise, you'll end up with a lost cache and the next time you open the solution, NCrunch's test pipeline cannot benefit anymore from the cached data, and - depending on the size of the solution - NCrunch will take "ages" again to run the tests "the very first time" (due to the missing long term performance / test duration data).

BR,
Ralf

Post a reply

Log in to reply.