OOP and RAM usage

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • webcm123@gmail.com

    #1

    OOP and RAM usage

    How is it with RAM usage by classes and objects?

    I found out that PHP4 uses more RAM than needed (read: make too more
    copies of data) - perhaps while calling functions or creating class.

    How is it in PHP5?

    Are all functions of class copied in the RAM for every created object?

  • gosha bine

    #2
    Re: OOP and RAM usage

    webcm123@gmail. com wrote:
    How is it with RAM usage by classes and objects?
    >
    I found out that PHP4 uses more RAM than needed (read: make too more
    copies of data) - perhaps while calling functions or creating class.
    >
    How is it in PHP5?
    >
    Are all functions of class copied in the RAM for every created object?
    >
    If you care about RAM usage, I'd suggest you program in C or another
    language that allows you to manage resources effectively. Or, just get
    more RAM, it's cheap. ;)

    --
    gosha bine

    extended php parser ~ http://code.google.com/p/pihipi
    blok ~ http://www.tagarga.com/blok

    Comment

    Working...