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
[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
[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
>
[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
4 matches
Mail list logo