[TextEditor] Implemented speed efficient diff tracker.