RE: [Phplib-users] phplib vs. pear
Brought to you by:
nhruby,
richardarcher
From: Peter B. <re...@f2...> - 2002-05-08 07:29:37
|
At 12:12 PM 5/7/02 -0700, Daniel Bondurant wrote: >anyone know what the cause of the slowdown is? >is it all the included files, or just the way the db class is written? I believe it is partly to do with the amount of code being included, but mainly because (and this is hearsay) the way they are written - the classes are well separated with good inheritance. Unfortunately PHP is slower than usual when you do this, hence the results :-( I'm hoping that PHP5 will fix these problems so we can write better OO code - as I'm slowly learning the best way to do it for Java I want to do the same in PHP without the overhead - although seriously OO appears to be overkill for many little tasks that PHP is used for. Of course that doesn't mean that the language shouldn't support them as for larger projects (or for proper classes as opposed to function libraries wrapped in a class) they are brilliant. Peter. ---oOo--- sendcard - The free PHP e-card solution http://www.sendcard.org |