From: David Vallner Date: 2007-02-07T23:37:10+09:00 Subject: Re: default to when missing On Tue, 06 Feb 2007 23:49:20 +0100, Jerry Jones wrote: > Right now, it is just showing the > alternate text, which is the image file name it is looking for. > Would it be a big hit on performance to have it check the images dir > for the file name prior to rendering the page, or should it keep an > index somewhere of the files that are there, or am I complete off base > in how to approach this? > An index will probably flat-out outperform a system call on access, with the cost being in recomputation of said. However, benchmark. A few stat()s per request probably won't be a bottleneck anyway. David Vallner