Wednesday, February 04, 2009

Why ninjas are cool

No. You are wrong. This is not yet another rant about why Dusk of Ninja & Brush is a totally awesome game. This is real ninja stuff! .NET ninja stuff – but you catch my drift.

Today I went to a Tech Talk at microsoft about ASP.NET performance. Usually these talks contain just enough to not be a complete waste of time – but they are seldomly totally awesome. Today was different. Today a ninja was doing the talk. The Ninja was Mads Kristensen. I have been reading his blog for a while, and knew that he was good. But seeing him live was a whole other ballgame. The dude knows his tech and how to present it.

First of all he cut straight to the chase saying that usually when you talk about ASP.NET optimization – or when MSDN does anyway – they talk about how optimize all the backend stuff. The point is that this matters – but not as much as you think. Usually that part of serving the page takes up less than 10% of the total time the page takes to load… What takes the other 90% is all the CSS, JS and image content stuff. So that is really where you want to optimize.

Taking it from there he ran at a gracefully fast ninja tempo through techniques like minifying, compression, outputcaching, http caching and a lot of other stuff. Techniques that I knew, but I am really underutilizing because they are somewhat hard to get into and get to work properly. Mads showed me that it was just because I was trying to use a screwdriver to drive in a nail. With a lot of handlers and helpers page, most of which were dead simple 1digit-liners, he transformed an albeit simple site page using ASP.NET AJAX, external CSS and JS from 18 HTTP requests and 200K down to 5 requests and 30K – 0K on following requests when cached. Yes – that is no content. Driving the YSlow score up to a whopping 93.

You of course have to use some thought on how to manage caching if you have a highly dynamic site. But with his handlers and helpers in that was pretty simple too. Bottom line – this can be used on almost any ASP.NET site with very little effort. I just can’t wait to get my hands on this code!

Mads. You are truly a ninja. Keep up the great work.

35 comments:

遊樂園 said...

人生中最重要的是要自尊、自愛、自立、自強、自信。 ....................................................

巧克力好吃 said...

Since it is the early worm that gets eaten by the bird, sleep late.............................................

開心唷 said...

Better say nothing than nothing to the purpose. ........................................

婉婷婉婷 said...

how do u do?................................................................

邱志誠 said...

Necessity is the mother of invention.......................................................

明宏明宏 said...

Actions speak louder than words. ........................................

逸凡逸凡 said...

hello~~........................................

銘雅婷木 said...

Lets cross the bridge when we come to it..................................................

OliveWol8888 said...

路過看看哦,請加油........................................

DennyR_Guari佳穎 said...

快樂的微笑是保持生命康健的唯一藥石,它的價值千萬,卻不要花費一文錢........................................

欣怡 said...

一定要保持最佳狀況呦,加油!!!期待你發表的新文章!.............................................

健豪 said...

免費聊天網免費視 訊聊天網免費處女免費視訊免費無馬免費無馬下載免費無瑪免費無碼情色免費無碼辣妹自衛免費紫薇免費紫薇命盤免費蒼井空免費電話故事免費飯島愛免費網上小說台灣ko聊天室kk視訊聊天kk視訊俱樂部kk視訊kk聊天俱樂部kk成人kk777視訊俱樂部kiss網站kiss電話下載kiss視訊kiss情色網kiss情色kiss情人網kiss情人色網kiss台灣情網色kiss台灣kissmmkiss911成人網kiss911成人kiss911comkiss711kiss520kiss168成人kiss168king7777netk9俱樂部j無碼jp素人露出大全集jp素人大全集

730A_ngelinaRabideau0 said...

知識可以傳授,智慧卻不行。每個人必須成為他自己。......................................................

rodriguezp said...

路過--你好嗎..很棒的BLOG...................................................

雅馨 said...

快樂是你與生俱來的權力,它不應該取決於你完成什麼。 ......................................................................

俊偉 said...

要持續更新下去喲!!祝你心情愉快.................................................................

王瑞 said...

死亡是悲哀的,但活得不快樂更悲哀。......................................................................

江婷 said...

所有的資產,在不被諒解時,都成了負債.................................................................

珮陽 said...

It takes all kinds to make a world.............................................................

溫緯李娟王季 said...

It takes all kinds to make a world.............................................................

玉苓玉苓 said...

Some people cannot see the wood for the trees.............................................................

婷珊 said...

一個人的際遇在第一次總是最深刻的,有時候甚至會讓人的心變成永遠的絕緣。............................................................

淑娟淑娟 said...

一棵樹除非在春天開了花,否則難望在秋天結果。

玉婷良DGFHFJ瑋黃吳 said...

打擾你實在不好意思, 你的blog很好看呢!!!!..................................................................

陳湘枝陳湘枝 said...

Poverty tries friends.............................................................

蔡靜芳蔡靜芳 said...

聰明人之所以不會成功,是因為他們缺乏了堅忍的毅力。..................................................

莊雅和莊雅和莊雅和 said...

教育無他,愛與榜樣而已............................................................

黃黃莉茹曉元 said...

Learning makes a good man better and ill man worse.............................................................

冠梁宏 said...

Learning makes life sweet.

家唐銘 said...

要在憂患恥辱的環境裡,創造我們自力更生的新生活。..................................................

文王廷 said...

做些小善事,說些愛的字句,世界更快樂。.......................................................

凱v胡倫 said...

Say not all that you know, believe not all that you hear.......................................................................

辰原 said...

相見亦無事,不來常思君......................................................................

江仁趙雲虹昆 said...

你的部落格很棒,我期待更新喔............................................................

佳張張張張燕張張張張張 said...

大肚能容,了卻人間多少事,滿腔歡喜,笑開天下古今愁。..................................................