On Tue, 17 Aug 2004, Rob Benton wrote:

I've been using the DB_File $DB_BTREE module to create groups and sort them on an 8 million record file. Is there a faster way to do this or am I still getting pretty good perfomance with this module?

What performance are you getting now?

Try benchmarking your code by doing something like this:

    use Benchmark::Timer;
    $t = Benchmark::Timer->new(skip => 1);

    for(0 .. 1000) {
        $t->start('tag');
        &long_running_operation();
        $t->stop;
    }
    $t->report;

<http://search.cpan.org/~andrewho/Benchmark-Timer-0.5/Timer.pm>

Or try the older Benchmark module:

<http://search.cpan.org/~nwclark/perl-5.8.5/lib/Benchmark.pm>

Send us the output of your benchmarks and then we'll be able to address the question of whether or not you're getting "pretty good performance".

:-)



--
Chris Devers      [EMAIL PROTECTED]
http://devers.homeip.net:8080/blog/

np: 'Barbados'
     by Charlie Parker
     from 'The Complete Live Performances On Savoy'

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to