Ask a Question related to PHP Development, Design and Development.

  1. #1

    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
    Cameron Guest

  2. Similar Questions and Discussions

    1. Zoom effect on a overhead map
      As part of a prototype for a mobile city guide I am trying to implement a zoom in map, whereby portions of a map can be selected and zoomed in on. ...
    2. [PHP] mySQL overhead: Tweaking Scripts for Speed
      check this out dan It may help http://www.mysql.com/doc/en/EXPLAIN.html ----- Original Message ----- From: "Dan Anderson"...
    3. Does Option Strict On add overhead?
      By turning Option Strict on, is there extra overhead? For example w/o it on the following doesnt get flagged: validxhtml.Attributes.Add("height",...
    4. Imports ANYnamespace.anyClass (overhead??)
      Importing a namespace, is simply shorthand, so you don't have to type the fully qualified name of the class every time. I believe it is only used at...
    5. Include Files and Overhead
      I have a medium sized ecommerce website which I have written using PHP and MySQL and I have a number of include files with some of them being...
  3. #2

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

    --
    [url]http://home.mysth.be/~timvw[/url]
    Tim Van Wassenhove Guest

  4. #3

    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
    Cameron Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139