in reply to Re: HTML::TableExtract Memory Usage
in thread HTML::TableExtract Memory Usage

Just tried all 3 of the above scenarios, but the memory keeps ballooning :/

Replies are listed 'Best First'.
Re^3: HTML::TableExtract Memory Usage
by Anonymous Monk on Sep 03, 2010 at 04:06 UTC
    I was afraid of that. There are too many circular references in that module, ie
    sub _reset_state { my $self = shift; $self->{_cdepth} = -1; $self->{_tablestack} = []; $self->{_tables} = {}; $self->{_ts_sequential} = []; $self->{_counts} = []; $self->{_in_a_table} = 0; } ... grid => [], translation => [], hrow => [], order => [], children => [],
    Would have to break all those circular references in DESTROY, recursively