Hi
I am finalizing a rather large application, being throwing around some
ideas to speed things up.

Mozilla Addon site inserted a thing layer to memcache all database
returns, it works fairly well. However, its just sad to look at the
profiler where Model construction taken up considerable amount of time
(think about a 20 + associated model). 120ms for a whole request,
where more than half of the time is constructing models.

Some may argue "fix your queries and use dynamic model binding"
Yes, I am using felex's ContainableBehavior similar to the
bindableBehavior and all the queries tweaked to lighting fast,
everything return the minimal possible set already.  And i want more,
so here is the idea.

Since ClassRegistry stores the object instance of different classes,
and construction of heavy associated models takes a while.. i am think
of storing object instance of constructed model inside memcache/apc at
ClassRegistry, so it can reuse across requests.. like object memory
pool available in other programming languages.

who knows, restoring model instance from cache may be faster than
walking heavily associated model links..

thoughts on this anyone?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to