Faster SVG Path manipulation

So I want to make a drawing tool using SVG, I’m using a rather naive approach to change the d attribute of my Path: $(“div#drawarea”).bind(“mousemove”, function(ev) { ev.preventDefault(); ev….