[Bioperl-l] get_Stream_by_gi: Memory going up every call.

Jelle86 snaphit at planet.nl
Fri Oct 26 12:42:13 UTC 2007


Ok I stripped a lot. And this is causing the problem:

use Bio::DB::Genbank;
sub new(){
  my $invocant = shift;
  my $class = ref($invocant) || $invocant;
  my $self = {@_};
  $self->{gb} = Bio::DB::GenBank->new();
  bless $self, $class;
  return $self;
}

sub streamQuery(){
	my $self = shift;        
	my $stream_obj = $self->{gb}->get_Stream_by_gi($self->{ids});
        while (my $seq_obj = $stream_obj->next_seq) {
                
        }
}

Both subs (new and streamQuery) are called several times with a new
accessionlist. 
Removing the while loop, will use a bit less memory. But the memory usage is
still going up.
-- 
View this message in context: http://www.nabble.com/get_Stream_by_gi%3A-Memory-going-up-every-call.-tf4689188.html#a13426480
Sent from the Perl - Bioperl-L mailing list archive at Nabble.com.




More information about the Bioperl-l mailing list