Overhead of objects

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 ...


Go Back   Usenet Forums > PHP Programming Forums > alt.comp.lang.php

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-24-2004
Cameron
 
Posts: n/a
Default Overhead of objects

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
Reply With Quote
  #2 (permalink)  
Old 01-25-2004
Tim Van Wassenhove
 
Posts: n/a
Default Re: Overhead of objects

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
Reply With Quote
  #3 (permalink)  
Old 01-25-2004
Cameron
 
Posts: n/a
Default Re: Overhead of objects

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
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 11:02 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0