Right now, every keypress directly causes the files to be re-encoded to check whether they are OK and show errors. For small files this is acceptable, for large files, this
melts the save editor
(As in, causes a lot of latency.) The work needs to be offloaded to a background task and the GUI needs to be audited for errors so that we don't allow saving while currently figuring out that the file is invalid and so on.
Right now, every keypress directly causes the files to be re-encoded to check whether they are OK and show errors. For small files this is acceptable, for large files, this
(As in, causes a lot of latency.) The work needs to be offloaded to a background task and the GUI needs to be audited for errors so that we don't allow saving while currently figuring out that the file is invalid and so on.
TODO: How bad is it for the browser version?