阅读背景:

动态更新数百万DOM元素样式的最快方法

来源:互联网 

I've built Conway's Game of Life in the browser just using the DOM. Nothing speical, it's been done before. My goal is to optimize it as best as I can. My actual Game of Life code works fine, and is fast enough for my liking. The bottleneck occurs in updating the screen state. With hundreds of thousands or millions of DOM elements on the screen, you can imagine that this can be quite slow (although faster than I first thought). My question is:I've built Conway's Game of Life in the browser




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: