pa7/heatmap.js — pull request #24 by lukasberns (2012-04-23 07:17:09+00:00)
Title: Performance improvement (up to 10x) of setDataSet

setDataSet set was calling colorizing overlapping rectangles over and over when using a large set with setDataSet (e.g. 1000). I implemented a simplistic algorithm to reduce overlapping rectangles to their bounding box. On my Chrome, the execution time of setDataSet(1000) in the static_heatmap demo went down from 1000ms to about 60ms.

The algorithm could be further improved to avoid colorizing of whitespace.

I love heatmap.js :)