Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Making an Object faster?

by jpeg (Chaplain)
on Jun 16, 2005 at 21:58 UTC ( [id://467466]=note: print w/replies, xml ) Need Help??


in reply to Making an Object faster?

I've never done tests myself, but here's what the Camel has to say:
The logic of abstraction comes at a price. Because of the late resolution of methods, an object-oriented solution in Perl is likely to run slower than the corresponding non-OO solution. For some of the fancier techniques described later, it could be a lot slower. However, many common problems are solved not by working faster, but by working smarter. That's where OO shines.
Camel 3rd edition, section 12.3

I could swear I've seen "20% slower" in an earlier version of the Camel, but I can't find it now. Obviously, depending on the code/hardware, YMMV.

--
jpg

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (7)
As of 2024-04-18 15:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found