Nicholas C. Zakas (NCZ)幾天前出完整個Javascript加速系列:
Speed up your JavaScript, Part 1
Speed up your JavaScript, Part 2
Speed up your JavaScript, Part 3
Speed up your JavaScript, Part 4
Part 1是loop (array looping優化),Part 2是function (anonymous function加速法及Memoization),Part 3是Memoization,Part 4是DOM(DOM DocumentFragments)<br />
(*部分方法是很吃Ram的,注意)
[More]
關於loop另外有一篇深入探討不同的for loop寫法效能 [What's the Fastest Way to Code a Loop in JavaScript?]
關於DOM DocumentFragments,John Resig有很詳細的文章探討 [DOM DocumentFragments]
沒有留言:
張貼留言