I have a machine setup to share c:\apps. I then map a drive letter Z: to that share (on the same machine). Would an application running from the Z:\ drive run slower than if I ran it from C:\apps?

In other words, would it run slower because it has to go through the network when running from drive Z:? Or does it see that it's in fact in the actually C: drive?

link|improve this question

feedback

3 Answers

up vote 3 down vote accepted

Assuming any fairly recent version of Windows, you shouldn't see any performance difference; modern versions of Windows are generally smart enough to short-circuit unnecessary trips to the network.

Of course, you could always benchmark it and see for sure.

link|improve this answer
feedback

On Windows XP SP3, the performance difference is huge. Here's an example running msysgit on the same folder, first via a mapped network drive then via a regular drive:

# Z:
$ time git log > /dev/null
real    0m1.518s
user    0m0.045s
sys     0m0.061s

# C:
$ time git log > /dev/null
real    0m0.382s
user    0m0.061s
sys     0m0.046s

This might not be an issue for your use case, or even most use cases. However, in this case, this application becomes slower by one order of magnitude and that hinders its usability quite a bit.

The alternative that have I found is to use the subst command:

subst z: c:\some\longer\path
link|improve this answer
feedback

Network share will be accessed through local loopback interface (127.0.0.1). I'm not sure about performance implication, probably negligible, may be higher CPU load. But you will be accessing it as a network user. So if you have read-only share you will not be able to write to it. However you can write to the same folder when accessing it through the file system.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.