I am working on a simple profiling tool where the goal is to have a minimal performance impact. As part of this I have thought a bit on the I/O issue, sicne such calls can easily decrease performance if handled incorrectly.
I am wondering if there is any performance difference in writing to the local file system, and writing to the network. The setup cost of creating a socket is pretty much irrelevant, sicne that will be a one-time cost, and it would be useful to be able to delegate most of the work to another computer on the network, especially since this will be used on test servers and controlled remotely as it is.
As a follow-up to that question, what are your thoughts on how much/often to write? Obviously one way saves CPU-time and the other way saves memory, but since I kinda have to save both I will have to find some optimal level inbetween.
The servers are running Windows Server 2003, which I reckon might matter in regards to filesystem used and all.