On 11/23/06 4:15 PM, [EMAIL PROTECTED] wrote: > I noticed, though, that this code: > > use Rose::DB::Object::Loader; > > my $loader = > Rose::DB::Object::Loader->new( > db_dsn => 'dbi:mysql:dbname=testdb2', > db_username => 'root', > db_options => { AutoCommit => 1, ChopBlanks => 1, RaiseError => 1 > }, > class_prefix => 'My', > ); > > $loader->make_classes(); > > for (1..100000000) { > my $p = My::Product->new(name => "doesntexist"); > $p->load(speculative => 1); > undef $p; > } > > eats about 3mb of memory per sec. Anything else that needs to be done > to clean up?
When I run that code on my system, the process never gets any larger than this: % ps -opid,vsize,rss,command -p 28684 PID VSZ RSS COMMAND 28684 37092 12708 perl test.pl The code is still running right now, in fact. (I added a bunch of zeros to the count to be sure :) I'm not sure what's happening on your system. My system: % uname -a Darwin yoshi 8.8.0 Darwin Kernel Version 8.8.0: Fri Sep 8 17:18:57 PDT 2006; root:xnu-792.12.6.obj~1/RELEASE_PPC Power Macintosh powerpc % perl -v This is perl, v5.8.8 built for darwin-2level ... -John ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Rose-db-object mailing list Rose-db-object@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rose-db-object