VSCodeVim / VSCodeVim/Vim

Significant Performance Degradation on Large File

Open
#8,115 7 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
15.2k
Forks
1.5k
Avg merge
3d 18h
Merged PRs (30d)
6

Description

Describe the bug
I have a couple of 120k lines YAML files which I edit on a daily basis. With recent updates (in the past month or even a couple of weeks ago), VS Code has become so laggy that the letter needs to catch up when I type, and moving lines up and down becomes a nightmare. Keystrokes also get swallowed from time to time which makes things unusable.

Turning the extension off seems to fix the issue, but I really don't want to. Also please note that this was never a problem with VS Code Vim until recently. I can reproduce it on both Windows and Mac machines. Tried fresh reinstallation, but it doesn't do anything.

To Reproduce
Steps to reproduce the behavior:

  1. Open a large file with let's say 120k
  2. Type quickly or try any basic line movement

Expected behavior
There shouldn't be any lag for basic operations and typing

Screenshots
With VS Code Vim ON

Nov-24-2022 10-46-34

With VS Code Vim OFF

Nov-24-2022 10-42-58

Environment (please complete the following information):

Version: 1.74.0-insider
Date: 2022-11-23T05:28:16.879Z
Electron: 19.1.3
Chromium: 102.0.5005.167
Node.js: 16.14.2
V8: 10.2.154.15-electron.0
OS: Darwin arm64 21.6.0
Sandboxed: Yes
VS Code Vim Version: v1.24.3

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No files, tests, or entry points are named in the issue. First reproduce the lag with a 120k-line YAML file while toggling VS Code Vim, then compare typing and line movement with the extension enabled and disabled; done means basic operations no longer lag or swallow keystrokes.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, vscode
Domain
performance, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.