Re: http://msdn.microsoft.com/en-us/library/system.io.file.exists.aspx
Does anyone know if this is a particularly slow or locking operation which could impact server performance in a large environment?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Locking no. Slow, depends on what you’re comparing it to. It’s fairly cheap as far as I/O goes, but I/O is generally slow overall compared to other operations. So, if you must use it, it won’t hurt too bad. However, I’d try not to call it more times than is truly necessary! 🙂