in reply to Procedural Perl slower than OO Perl!!!
To my great suprise the OO version seems to work faster despite having more lines of code and additional complexity. Can anyone explain why?
Given that the procedural code you've posted here is still an order of magnitude slower than this version, the difference in performance between the two versions you've posted comes down to differences in the algorithms, and the implementations of those algorithms, not to the relative performance of perl's function and method calls.
The two posted versions do not even produce the same solution, so you are comparing apples with oranges and claiming the lemon juice produced tastes sweeter.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Procedural Perl slower than OO Perl!!! (Not!)
by stvn (Monsignor) on Dec 23, 2010 at 19:25 UTC | |
by BrowserUk (Patriarch) on Dec 23, 2010 at 19:39 UTC |