Hello everybody,

I, too, use Firefox and Firebug. Firebug running really slows down the
loading/initialization speed of any page that uses a lot of
javascript.

Additionally the Script.aculo.us libraries a rather big. A suggestion
would be to google for packed versions of Script.aculo.us and
Prototype and include these instead. This sizes differ significantly -
so at least download speed will most likely increase.

But these are just client side improvements. I experience really good
performance improvements with un/binding Models at need just like
NOSLOW suggested. What really works well is the Bindable behavior
which I use for all my models. I recommend to a look at this bakery
article: 
http://bakery.cakephp.org/articles/view/bindable-behavior-control-your-model-bindings

jost


On Apr 25, 3:48 pm, NOSLOW <[EMAIL PROTECTED]> wrote:
> I've had some issues too and will share some of my findings in hopes
> some more knowledgeable people will correct me where I'm wrong:
>
> Is debug level set to 0? If there are lots of models loading (and not
> being cached) you'll hit some overhead.
>
> Probably not related to your specific problem, but I've noticed if you
> have a bunch of models loading with your request, there's 100-200ms of
> overhead per each model load. I've hit this problem with 20-30 models
> loading foreach of my ajax requests. If you look in your app\tmp\cache
> \models directory, you'll see these model cache files being recreated
> during each request.
>
> After spending days tracking this down, I figured that I'll just
> unbind all the models and bind just the needed ones. Uh-uh. Cake does
> all this *before* you get a chance at it (the best I could tell is
> that your first chance at anything is in Controller::beforeFilter(),
> which happens after all the model classes are contsructed).
>
> My conclusion (someone please correct me if I'm wrong here): if you
> have many relationships and don't use caching of your models, you'll
> have to avoid defining default bindings in your model files and
> manually bind models as needed per request.
>
> Another thing to note when debug level is not set to 0, your
> javascript files will be forced down with every page load. This is not
> an issue with ajax requests, though. Packaging/minifying your script
> and css is a good strategy to adopt to improve performance in that
> regards.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" 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