title: html 5 canvas drawing is slow!
body: <p>I am making a web application which is similar to paint. The problem that I am facing right now is that my drawing algorithm is awfully slow. Basically what I am doing is drawing a straight line between successive pixels that have been recorded with the mousemove event. </p>
  
  <p>Is there a smarter/(less expensive) way to draw user created lines and curves using html 5 canvas?</p>
  
  <p>EDIT:
  It is incredibly slow only when I am redrawing the strokes that were already on the canvas.</p>