Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
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

Closed

Description

@hansonw

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions