in reply to Re^3: Perl tidy - uses up RAM at crazy rate
in thread HTML::Tidy - uses up RAM at crazy rate

Thanks for your suggestions on format changes and code improvements - I'll work on putting them in. Regarding size I'm running the script of about 3,000 files. OK at first much slower as it continues. Any ideas? Thanks!

  • Comment on Re^4: Perl tidy - uses up RAM at crazy rate

Replies are listed 'Best First'.
Re^5: Perl tidy - uses up RAM at crazy rate
by Anonymous Monk on Mar 14, 2016 at 06:36 UTC
    Iterate over the list of files, then process each one in a child using system
Re^5: Perl tidy - uses up RAM at crazy rate
by graff (Chancellor) on Mar 16, 2016 at 05:04 UTC
    So you've tried two versions - one with HTML::Tidy->new outside the file loop, and one with it inside the loop? Was there actually no difference in behavior?

    I notice that there's a "clear_messages" function. Have you tried calling that at the end of each iteration? (I assume you've read the man page for this module...)

Re^5: Perl tidy - uses up RAM at crazy rate
by Anonymous Monk on Mar 14, 2016 at 04:34 UTC

    I forgot to include that I've got 8gigs of DDR3 RAM and a 1.5GhZ Intel Core i5 processor. Thanks.