in reply to CGI.pm table function memory usage
this speeds up the CGI::self_or_default, which, under use CGI qw(:standard); mode, instantiates a new CGI object for each function call.use CGI; # ... print FH CGI->table(@rows);
as for memory consumption, you'll have to work a row at a time..
(updated to clarify: it is the stringification of "@result" that CGI->table() does that is the resource killer. you can avoid that with print FH CGI->start_table, @rows, CGI->end_table;)print FH CGI->start_table; print FH @rows; print FH CGI->end_table;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: CGI.pm table function memory usage
by isotope (Deacon) on Sep 06, 2006 at 22:19 UTC |