Skip to content

Undoing large operations on large file locks vim up #318

Open
@marcopaganini

Description

@marcopaganini

I'm evaluating vim-orgmode for personal use and discovered that undoing a large operation on a large file (~750KB, ~19k lines) locks vim up completely. Using top and strace on another screen, I can see vim consuming an entire core and doing a considerable number of mmap operations.

I started to trim the file to a smaller size, and the problem happens even with 5k lines files. Files with 1k lines will be slow, but not lock up. I waited for about 5 minutes for the undo operation to complete before giving up.

Info:

$ vim --version | head -5
VIM - Vi IMproved 8.1 (2018 May 18, compiled Feb 22 2019 12:55:04)
Included patches: 1-875, 878, 884, 948
Modified by team+vim@tracker.debian.org
Compiled by team+vim@tracker.debian.org
Huge version with GTK3 GUI (...)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions