Skip to content

PgUp/PgDown scrolling slow in large files with softwrap enabled #3964

@Profpatsch

Description

@Profpatsch

If you open a large-ish file micro will have no problem scrolling line-by line (holding arrow down).
But when you use PgUp/PgDown to scroll a full screen-height, it takes over a second per page.

Example file: https://download.geonames.org/export/dump/cities15000.zip after extraction, which is only 33k lines and 7MB.

It feels like the page scroll is O(n) in file-size, maybe it tries to figure out all line-endings first.

Version: 2.0.14
Commit hash: 5b6eed5

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions