Hi,
cc96ai wrote:
We have more than 4000 xml file and the program will read all and write into group of file , like a-z index page, (a.html, b.html... ) and by category (categoryA/topicA.html , catgoryA/TopicB.html) for all the process, it run around 5 - 8 min. any thought to speed it up?
If you are not processing the files, then you do not need to "read the file in" and you can simply do a copy. If you are just sorting files, then moving them rather than copying them would be faster. (Or, if you need a copy, a move and a symbolic link might be faster...I'm not sure.)
The running time is limited by the speed of the hard disk; so if you just copy all 4000 files from one place to the other, that is something you cannot improve on. What you can improve on is the sorting phase and that depends on how you are sorting...what information do you get from the file to determine where it goes. Can you provide more information?
Ray -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/