in reply to Re^2: How to deal with Huge data
in thread How to deal with Huge data
I didn't understand very well what means "OP", but anyway... the tip is a bit off-topic since it's not related to the memory issue. But is a tip anyway.
Doing things like the code below:
my @t; T: while( my $line = <GSE> ) { $line =~ s/[\r\n]//g; @t = split(/\t/, $ligne); if( $. == 1 ) { shift(@t); @samples = @t; next T; } @t = ();
Should avoid memory allocation everytime the variable is created/removed. If this really does not work like that, please let me know.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Pseudo-Optimizations
by chromatic (Archbishop) on Jan 24, 2007 at 20:42 UTC | |
by glasswalk3r (Friar) on Jan 29, 2007 at 13:56 UTC |