Closed looshi closed 9 years ago
The debounce may be able to go in this overriden handler inside the TextEditor : https://github.com/looshi/Meteor-Live-Template-Editor/blob/master/client/views/template-editor/TextEditor.js#L52 that way we can just debounce all text input in one place.
added a debounce and also put a debounce flag inside the TextEditor internal handler, so the event can be switched on and off
Currently every single "change" event on a CodeMirror instance invokes a database change, which is extremely inefficient, but very convenient for the time being.
The goal of this ticket is to enhance the system performance with respect to saving changes so that :
the point is , not every single keystroke should trigger a system update. https://github.com/looshi/Meteor-Live-Template-Editor/blob/master/client/views/inspector/Inspector.js#L149