Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^2: object oriented performance

by adrianh (Chancellor)
on Jul 17, 2005 at 17:27 UTC ( #475572=note: print w/ replies, xml ) Need Help??


in reply to Re: object oriented performance
in thread object oriented performance

Sounds like your professor was just trying to demean Perl

I can't see how stating facts (or close approximations thereof) is demeaning.


Comment on Re^2: object oriented performance
Re^3: object oriented performance
by jacques (Priest) on Jul 17, 2005 at 17:56 UTC
    I can't see how stating facts (or close approximations thereof) is demeaning.

    It depends on how you say it and the context. And I never said he was being demeaning.

Re^3: object oriented performance
by waswas-fng (Curate) on Jul 18, 2005 at 04:04 UTC
    He exluded the fact that sub calls and oo calls are almost never higher than 5% of total runtime of an app (unless you have some very tight loops that were not unwound to deal with the slowness of both). So he implied that oo-perl was 30% slower ehn in fact it is usuqally a few percent slower in a real app.


    -Waswas
      He exluded the fact that sub calls and oo calls are almost never higher than 5% of total runtime of an app (unless you have some very tight loops that were not unwound to deal with the slowness of both). So he implied that oo-perl was 30% slower ehn in fact it is usuqally a few percent slower in a real app.

      All we know from the OP is that the prof said

      using the object oriented functionality in Perl would introduce a performance hit of approximately 30%

      No mention of method call times (which which are only 10-15% slower these days anyway). Method calls certainly slow OO Perl, but good OO Perl will also have other areas that would slow it down as compared to an imperative solution.

      As the TheDamian said in his book on OO Perl:

      ... an object-oriented implementation of a system in Perl will almost never be faster than the equivalent non-object-oriented implementation, and will usually be somewhere between 20 to 50 percent slower.

      and I don't think he can be accursed of demeaning Perl :-)

      If the OP's prof had said "object oriented functionality in Perl would introduce a performance hit of approximately 30% and so you shouldn't use it" then they're an idiot I agree, but a 30% performance hit sounds about right for a large codebase - and I'll happily take it for the increased maintainability an OO solution would give me.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://475572]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2014-12-28 08:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (179 votes), past polls