JavaScript optimization with nested loops
<p>I have a huge array of points to draw on a canvas. Right now i am drawing every point by running a nested loop for x and y on the array of the data. This seems to be causing firefox to show a script has hanged notice.</p>

<p>What would be the best way to avoid that?</p>

<p>IMO some kind of parallel looping solution would be great, but the problem is i am not aware of any such method.</p>
