Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

NCrunch cache storage path on RAMDISK?
GreenMoose
#1 Posted : Thursday, March 31, 2016 2:08:34 PM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 6/17/2012(UTC)
Posts: 507

Thanks: 145 times
Was thanked: 66 time(s) in 64 post(s)
Hi,

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

Thanks.
Remco
#2 Posted : Thursday, March 31, 2016 6:58:24 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,161

Thanks: 964 times
Was thanked: 1296 time(s) in 1202 post(s)
GreenMoose;8511 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.
Ralf Koban
#3 Posted : Friday, April 1, 2016 9:02:35 AM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 5/19/2014(UTC)
Posts: 44
Location: Germany

Thanks: 4 times
Was thanked: 10 time(s) in 9 post(s)
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
1 user thanked Ralf Koban for this useful post.
GreenMoose on 4/20/2016(UTC)
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAF | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 0.029 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download