Velocity 2010 was an excellent conference. Following are my takeways from the conference. There is tons more but following are some of the things that made a good impression and are likely not hard to do
Web performance optimization
- Use JQuery sparingly. It takes 200-300 ms to parse it. This is even worse in the mobile world.
- Google rewrote their show_ads.js with ASWIFT which causes script loading to be asynchronous and not block other elements from loading. More about "Don't Let Third Parties slow you down" and http://www.royans.net/arch/speeding-up-3rd-party-widgets-using-iframes/
Mobile performance optimization
- Avoid JQuery unless you really need it. Check out slide 90. It takes 1.8 seconds on iPhone and 4 seconds on Android to download and parse JQuery. Use mobile optimized frameworks such as baseJS and XUI
- Avoid DNS lookups and minimize number of requests since they are slow
- Use inline images (slide 56) and pictograms
- Avoid redirects
- Use native constructs especially for Webkit browsers e.g. -webkit-text-stroke
- Keynote announced their Mobile Testing tool for desktops that looks promising http://mite.keynote.com/
- According to Google SSL overhead these days is pretty minimal. Around 1% on today's servers.
- Pet peeve about the presentation is they were advising everyone to use less secure key lengths ie. 1024 bits and RC4 cipher to improve performance. It is true that adding SSL to insecure connections is certainly an improvement but it should be qualified. E-mail probably fine. Financial sites probably bad.
- Hidden Scalability Gotchas in Memcached and Friends by Neil Gunther (author of Guerilla Capacity Planning) and Shanti Subramanyam discussed their findings around memcached. They used quantitative analysis to analyze different memcache versions. Based on their analysis using Neil's model memcache 1.4.5 has higher contention than 1.2.8.
- Thoroughly enjoyed John Rauser's Creating Cultural Change