for merging you can use .attr( values, true).
Replacing piecewise would not necessarily be faster. It would have to create additional events. Sometimes just redrawing everything is faster than multiple inserts.