It loops over the files and call tidy.pl on each of them. tidy.pl can take a list of files in parameters, then tidy is run in parallel. It would be more effective, but not sure it is worth to spend too much time on this script. Only logging the issue, I don't plan to work on this.