Marijn, while it's true that client side optimizations are extremely important, there are many resources available about them and obviously most are not Symfony specific. My post was made EXACTLY BECAUSE most people ignore these optimization while using frameworks. I had ignored them, adhering to the state of mind usually set for framework users. However, I have paid a STEEP PRICE for ignoring them and was able to take off most of the server's load by making the proposed changes. Cutting off ~80% of the pages load time is very significant.
I don't discourage using convenient tools offered by Symfony, only that developers by aware of the prices. On Feb 23, 3:30 am, Marijn Huizendveld <[email protected]> wrote: > I agree with J. Philip, this seems like micromanaging code to me and > can be very confusing for rookie front-end developers. Yahoo has done > some great research on performance and they found that you can > generally increase your performance by 80% by reducing http requests > and placing scripts at the bottom and css at the top of your page. > Combine your output and in less files and use css sprites. In my > opinion backend optimizations like yours lead to a less readable and > maintainable codebase in the long term. > > I really don't want to sound to harsh but your suggestions were the > type of performance enhancements I was thinking about as well when I > didn't use frameworks and in the end they all cost me a lot more time > and money because in the end it results in highly unmaintainable code. > > I suggest you read the post from fabien on the subject and the yahoo > research: > > * Best Practices for Speeding Up Your Web Site > * print vs echo, which one is faster? - Fabien Potencier > > Kind regards, > > Marijn > > On Feb 22, 2009, at 11:38 PM, J. Philip wrote: > > > > > This might help on the server side, but with as many http requests as > > some pages have, it might not be so noticeable for the end user: > > > Stats for page:http://colnect.com/en/phonecards/countries > > > Empty Cache > > > 72.6K 1 HTML/Text > > > 16.0K 2 IFrames > > > 17.5K 7 JavaScript Files > > > 0.01K 1 Stylesheet File > > > 1.5K 7 CSS Images > > > 261.7K 242 Images > > 369.4K Total size > > 260 HTTP requests > > > -------------------------------- > > > Primed Cache > > 72.6K 1 HTML/Text > > > 16.0K 2 IFrames > > > 1.9K 5 JavaScript Files > > > 0.01K 1 Stylesheet File > > > 0.0K 1 CSS Image > > > 0.0K 145 Images > > 90.6K Total size > > 155 HTTP requests > > > -----Original Message----- > > From: [email protected] > > [mailto:[email protected]] On Behalf Of colnector > > (colnect.com) > > Sent: Sunday, February 22, 2009 11:24 AM > > To: symfony developers > > Subject: [symfony-devs] TIP: increase your templates speed > > > I've formerly started this thread: > >http://groups.google.com/group/symfony-devs/browse_thread/thread/f1aedc5 > > 427017096/b31736f53422c49e#b31736f53422c49e > > > and have since then tried and got some interesting results which > > made me > > write this blog post: > >http://blog.colnect.com/2009/02/upto-80-speed-increase-on-colnect-with.h > > tml > > > I would be happy to get some comments from other Symfony developers. > > > Excerpt of the blog post: > > Upto 80% Speed Increase on Colnect with Symfony > > I have managed to cut up to 80% in loading times for Colnect's pages. > > This is going to be a technical post that would hopefully help others > > using Symfony framework on their websites. Please mind that for many > > sites, caching can and should be enabled. On Colnect, however, a lot > > of > > pages (especially the heavy ones) cannot be cached since they need be > > calculated on every request from the same user. If your site is not > > very > > dynamic, using APC (if you have a single server) or memcached (when > > you > > have many) is the best thing you can do for performance. > > > Enjoy :) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony developers" 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/symfony-devs?hl=en -~----------~----~----~----~------~----~------~--~---
