Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re^3: Perl slower than javaby dHarry (Abbot) |
on Dec 09, 2010 at 12:43 UTC ( [id://876244]=note: print w/replies, xml ) | Need Help?? |
performance-aware algorithm design I fulle agree, however sometimes there is not a lot you can do. Or sometimes the cost is less important/irrelevant, only speed matters. To give an example, I'm working on over-constrained CSP's and the algorithms are al at least NPC. Speeds is very important. We will even settle for sub-optimal solutions if we can speed things up. This is exlactly the reason why I've been looking into genetic algorithms. If you can improve the performance of a C-program by a factor 60 by rewriting it in Perl I would argue it was a poor implementation in C in the first place. I'm a big fan of Perl but I'm not religious when it comes to programming, when I need speed there are normally better options available. Cheers Harry
In Section
Seekers of Perl Wisdom
|
|