Re: [PHP] Re: oop too slow

2004-08-19 Thread Yann Larrivee
You could simply recall the constructor if the object exist. This way you do not create the objects for every data entry you have and aviously it will use less ressources. Also like someone else told you, Get a Debuger! It will point out the slow part of your code. For example i had 30 000 lines

RE: [PHP] Re: oop too slow

2004-08-19 Thread Jay Blanchard
[snip] > [snip] > Yes it does. Do you think it's not so slow ? > > > [snip] > > Well, I changed my script a little for tests and turned off the > queries. > > Now > > I'm setting some defaults data to those 300 objects but it's still too > > slow. > > I create for every value, key and product a dif

RE: [PHP] Re: oop too slow

2004-08-19 Thread Jay Blanchard
[snip] Yes it does. Do you think it's not so slow ? > [snip] > Well, I changed my script a little for tests and turned off the queries. > Now > I'm setting some defaults data to those 300 objects but it's still too > slow. > I create for every value, key and product a different object so it's in >

RE: [PHP] Re: oop too slow

2004-08-19 Thread Jay Blanchard
[snip] Well, I changed my script a little for tests and turned off the queries. Now I'm setting some defaults data to those 300 objects but it's still too slow. I create for every value, key and product a different object so it's in fact 30*10*5 objects. Then I run __toString() method one by one an