Skip to content

Text viewer: large text/markdown files freeze rendering and can run out of memory #6901

Open

Description

@ToteMeiSter

Is your feature request related to a problem? Please describe.
This follows up on the review by @rapterjet2004 in #6862, which suggested a separate issue.
I found the following by reading the code at d9abd8e. I did not measure it on a device.

For a file of several MB, layout and parsing may cost more than the read itself.

Describe the solution you'd like
A size limit for the internal text viewer. Above the limit, the app does not open the file inline and offers "Open in Files" (or an external app) instead.

Describe alternatives you've considered
A lazy, line-based list (LazyColumn), so that only the visible lines are laid out. Markdown would still need a separate solution.

Additional context
I am happy to work on a PR if one of the approaches is acceptable.

The analysis and this text were prepared with an AI assistant and reviewed by me.

Activity

  1. mahibi commented on Oct 26, 2026

    @mahibi
    Collaborator

    Thank for all the contributions, we will soon have a look!

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