Shekar C Reddy a écrit :
Great idea! But on a busy site (or when the
site is busy), do you consider invoking an additional method such as
removeHelper or setParam as not an overhead? Consider Yahoo! Consider a
worst-case scenario when the server is pounded aka AJAX,
Denial-of-Service Attacks... Further, by the time we invoke
removeHelper, if the ViewRenderer helper is already instantiated, it is
an overhead, too.
Yes, there is a little overhead, of course, but,
if performance is the point, MVC and template engine like smarty should
may cause a bigger problem. I dev for a pretty loaded site, and the key
is the cache. op code cache, page cache, partial cache, media cache,
etc... what ever you do, unless you are not limited by hardware cost,
you should always think about cache. try to optimize some little stuff
is not the key, amho.
|