You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
Repository navigation
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
Add file-size threshold for diff-based reload #153
For large (100KB+) files with many small changes, reloading the file based on disk contents via diff can freeze the editor indefinitely - I assume the diff algorithm does not scale to files of that size (which is pretty reasonable).
This actually can happen in practice with large automatically generated files. For example, a co-worker was able to trigger this via an autoconf-generated configure file (~450KB) - modifying configure.ac and running autoconf would instantly trigger an editor lock once Atom attempted to diff the file.
It seems like there should be some file size threshold past which Atom no longer attempts to setTextViaDiff and just falls back to setText instead. Either that, or atom-diff should fall back to a less accurate method for larger files.
Activity
ghost added a commit that references this issue on Apr 29, 2016
Activity
Override Atom's TextBuffer and do not setTextViaDiff for large files