in reply to HTML::Tidy - uses up RAM at crazy rate
Apart from that, have you tried use strict; use warnings; ? Also, with regard to handling a bunch of files, have you tried calling HTML::Tidy->new inside the loop on file names? (I don't know that it would make a difference, but maybe by parsing many files using the same instance of the object, there might be some accumulation of content?)
Finally, what particular evidence are you seeing that leads you to regard it as "a huge resource hog"? CPU load? Memory footprint? Something else?
Sorry - I realize RAM is in the title (which should mention "HTML::Tidy", rather than "Perl tidy", which is something else entirely). So, how much RAM are you talking about?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: HTML::Tidy - uses up RAM at crazy rate
by Anonymous Monk on Mar 13, 2016 at 18:42 UTC | |
by graff (Chancellor) on Mar 13, 2016 at 23:06 UTC | |
by Anonymous Monk on Mar 14, 2016 at 04:30 UTC | |
by Anonymous Monk on Mar 14, 2016 at 06:36 UTC | |
by graff (Chancellor) on Mar 16, 2016 at 05:04 UTC | |
by Anonymous Monk on Mar 14, 2016 at 04:34 UTC |