katspaugh/wavesurfer.js — pull request #6 by kevincennis (2013-02-20 02:26:19+00:00)
Title: Use Float32Array#subarray instead of Array.slice

...Also use a loop instead of Math.max

slice vs subarray: http://jsperf.com/float32array-array-slice-call-vs-subarray
for loop vs Math.max: http://jsperf.com/find-max-in-float32array
getPeaks (new vs old): http://jsperf.com/wavesurfer-getpeaks

Cheers!