Hi,

> >>    Are there any performance differences that are noticable in a
> >>300-400 line PHP script if you overuse classes rather than straight
> >>functions?
>
> This is a loaded question.  If you overuse classes, there will be a
> performance hit :).  However, in a 300-400 line script, you might find
> the performance improve if using OO allows you to elegantly solve the
> problem.  There is no definitive answer.  It's like asking if you'll get
> fat from eating 1500 calories every day for a week.  A bit more
> information is needed :)

        lol..  I guess it could be taken as one.  Re-reading it, I can see it
definitely appearing as one.  I just have a feeling that I overuse objects.
Sometimes I don't even take advantage of what they can do, and use 'em as
glorified functions.  I can atleast say it keeps me organized, but then
again, if its sloppy in the performance area, I'll probably change my ways.
So, I guess we're all right, depending on the situation, it could or hinder
performance.  As for more information right now, don't really have anything
specific I could toss out there.  I think I'll stop before I confuse
everyone further.

-Dan Joseph


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to