From: Robin * S. <pre...@pa...> - 2003-03-06 06:11:11
|
Hello, IDS had severe performance problems for me. I have directories of 500-2000 photos now that big compact flash cards are cheap. Up to 9 seconds to load a page, down to less than 2 seconds with this mod. The idea is to cache the time info in album-data directory. basically I changed fillDateHash() To find out if the data is already in %mtime, if it is not, then read the cache, if it is still not there, check the file via the old means. After rendering the page, then it writes all the data in %mtime out to album-data/ALBUMNAME/time-cache.txt The problem was that before this change, the date info was re-calculated for every page view for all files in an album. This made large albums very very slow to view. I added 3 new functions to do this. getMtimeCacheName() given a file return the name of its cache. readMtimeCache() fill mtime from a file. writeMtimeCache() given the hash write it out to a file(s) -- -R*S San Francisco, CA Robin * Slomkowski ro...@sl... |