So I have been hacking a few utils to find specific info in a template. Since we are not using DAS, metadata search is not an option.
My first (and knowingly slow) plan was:
find . -type f ! -name "*.js" ! -name "*.cfg" ! -name "*.tpl" -exec script.ipl {} \;
I put a short script to validate XML as a test. This took 28 minutes to run through one of our data directories.
I noticed on CPAN.ORG a recurive perl module. So I downloaded that & put it on (it is rev 0.11) and put that in my code, timing went down to just under 8 minutes.
When I ran this from my templatedata dir, which recurse alone worked, when I ran the integrated script, it cored.
(I have never core dumped Perl before).
Finally, I see IW users a ls -R to create a file list (but you have to filter out directories) I plan to benchmark that.
OK, so I did benchmark it, ls -R creating a file list dropped the time from 7 minutes 50 seconds to 6 minutes 43 seconds.
So that seems to be the best (so far)
Has anyone tried anything similar ? Any better implementations ?
Andy
Edited by nipper on 07/14/03 10:48 AM (server time).