This is a discussion on Overhead of objects within the alt.comp.lang.php forums, part of the PHP Programming Forums category; I'm wondering what the overhead is when creating objects, the project I'm currently working on would require many ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
I'm wondering what the overhead is when creating objects, the project
I'm currently working on would require many object creations, and I need to figure out if it's best to use functions or to use classes so what I want to know is when doing $foo = new bar; how much impact would this have on the system if used on a large scale with lots of objects possibly multiple instances of each in memory at one time. ~Cameron |
|
|||
|
On 2004-01-24, Cameron <foo@bar.invalid> wrote:
> I'm wondering what the overhead is when creating objects, the project > I'm currently working on would require many object creations, and I need > to figure out if it's best to use functions or to use classes so what I > want to know is when doing > > $foo = new bar; > > how much impact would this have on the system if used on a large scale > with lots of objects possibly multiple instances of each in memory at > one time. Or you are a troll, or you are too lazy to use the search groups at google.com to find recent discussions on this topic. (Anyway, i think your script would have much more important bottlenecks than the (not) usage of classes.) -- http://home.mysth.be/~timvw |
|
|||
|
Tim Van Wassenhove wrote:
> On 2004-01-24, Cameron <foo@bar.invalid> wrote: > >>I'm wondering what the overhead is when creating objects, the project >>I'm currently working on would require many object creations, and I need >>to figure out if it's best to use functions or to use classes so what I >>want to know is when doing >> >>$foo = new bar; >> >>how much impact would this have on the system if used on a large scale >>with lots of objects possibly multiple instances of each in memory at >>one time. > > > Or you are a troll, or you are too lazy to use the search groups at > google.com to find recent discussions on this topic. > > (Anyway, i think your script would have much more important bottlenecks > than the (not) usage of classes.) > Is that your way of saying you don't know? ~Cameron |