Instead of delaying edits to the Y.Doc, make all edits immediately. But combine the resulting updates into a single update before sending it to the other doc.