Re: [PHP] Objects and Performance

2005-06-09 Thread Greg Donald
On 6/8/05, Greg Beaver [EMAIL PROTECTED] wrote: If you want to compare object methods versus functions, you should compare identical code inside a method to code inside a function. Greg's benchmarks compare two different ideological code structures. Quite honestly, the wrapping of mt_srand()

Re: [PHP] Objects and Performance

2005-06-09 Thread Matthew Weier O'Phinney
* Greg Donald [EMAIL PROTECTED] : On 6/8/05, Greg Beaver [EMAIL PROTECTED] wrote: If you want to compare object methods versus functions, you should compare identical code inside a method to code inside a function. Greg's benchmarks compare two different ideological code structures. Quite

Re: [PHP] Objects and Performance

2005-06-09 Thread Greg Donald
On 6/9/05, Matthew Weier O'Phinney [EMAIL PROTECTED] wrote: Actually, that is the point. If I decide the write a script, and it is my idea, then the point of the script is my own. It's a simple benchmark. I doubt a client would ever come to me and say Can you write me a script to add two

[PHP] Objects and Performance

2005-06-08 Thread NSK
Hi, I am creating a small API in PHP, i.e. a collection of reusable functions for other programmers. As it is now, it is just many functions together in the same file. Do you think I should make it object-oriented? What are the pros and cons of this approach in PHP? I am particularly very

Re: [PHP] Objects and Performance

2005-06-08 Thread Greg Donald
On 6/8/05, NSK [EMAIL PROTECTED] wrote: Hi, I am creating a small API in PHP, i.e. a collection of reusable functions for other programmers. As it is now, it is just many functions together in the same file. Do you think I should make it object-oriented? What are the pros and cons of this

Re: [PHP] Objects and Performance

2005-06-08 Thread Greg Beaver
Greg Donald wrote: On 6/8/05, NSK [EMAIL PROTECTED] wrote: Hi, I am creating a small API in PHP, i.e. a collection of reusable functions for other programmers. As it is now, it is just many functions together in the same file. Do you think I should make it object-oriented? What are the pros and