[cfaussie] Re: Lots of calls to DirectoryExists()

2008-10-28 Thread Barry Beattie
[mailto:[EMAIL PROTECTED] On Behalf Of Simon Haddon Sent: Wednesday, 22 October 2008 6:17 AM To: cfaussie@googlegroups.com Subject: [cfaussie] Re: Lots of calls to DirectoryExists() File system access to see if a file or directory exists is fast. Can't imagine it causing a problem any more than

[cfaussie] Re: Lots of calls to DirectoryExists()

2008-10-28 Thread CyberAngel
I think it was Sean too, however it would not just be Sean. One of things we as developers tend to ignore, well maybe not ignore. But we do try to emphasise to much on getting it right the first time, the pressure from clients to do this is let's say a big factor in the equation. However it may

[cfaussie] Re: Lots of calls to DirectoryExists()

2008-10-21 Thread Dale Fraser
I think it wouldn't be too bad, but there might be smarter ways. What about recursively browse the directory once and build a struct, then you can use if structKey exists Regards Dale Fraser From: cfaussie@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Joel Chia Sent:

[cfaussie] Re: Lots of calls to DirectoryExists()

2008-10-21 Thread Zac Spitzer
Is there a performance issue ? don't prematurely optimise unless you have to:) how does your app perform with your max expected number of users and directories being checked? file systems are pretty fast these days. jmeter is pretty easy to setup to test this kinda load, there's a quick guide

[cfaussie] Re: Lots of calls to DirectoryExists()

2008-10-21 Thread Simon Haddon
File system access to see if a file or directory exists is fast. Can't imagine it causing a problem any more than, say, a small loop. Easier than a database query. If you start having performance issues then there could be a whole range of things that can cause problems rather than a