Subject: | Argument caching is disabled which makes is_file_tidy() slower on repeated calls |
"perltidyrc" option to Perl::Tidy::perltidy() disables caching of parsed arguments, and this parsing takes about 30% of execution time (on my machine).
To avoid that, command line option "--profile" should be used instead.
Patched lines are:
--
- perltidyrc => $perltidyrc,
+ argv => "--profile=$perltidyrc",
--
Such a small change improves the speed of repeated calls by about 30%.