in reply to SMP and Perl

There are of course several approaches to big problems. Throw more processing power at it is one approach. Optimise you code is another. Cynics might liken this to the difference between Windows and *nix. Optimising code takes many forms but Benchmark and Devel::DProf will help you see where the cycles are going. Writing bottle neck bits in C may be beneficial as may utilising fork() for parallel processing.

cheers

tachyon

s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print

Replies are listed 'Best First'.
Re: Re: SMP and Perl
by £okì (Scribe) on Apr 10, 2002 at 22:37 UTC
    I just have a LOT of data to parse. it's a SIMPLE code relativly just takes a lot of power to run through that much data and I was hoping to speed it up. I think I have solved the problem thou. I'm going to rewrite it in c. Yes, I still love perl, just gonna do this one in c plus then I can compile it with more ease. Thanks guys.

      If you post some data and sample code you may be able to save yourself a rewrite. I believe the perlmonks record for recreational optimisation stands at several orders of magnitude. Good Perl can be extremely fast (in some cases only half the speed of C) and has some top notch optimisation tools.

      cheers

      tachyon

      s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print