Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Super Slow Typing in Insert Mode #7546

Open
passabilities opened this issue Mar 9, 2022 · 4 comments
Open

Super Slow Typing in Insert Mode #7546

passabilities opened this issue Mar 9, 2022 · 4 comments

Comments

@passabilities
Copy link

Issue Type: Performance Issue

Lately if I'm in insert mode and trying to type in file, with ~500+ lines of code, it is extreamly slow at recognizing the key presses. I find it unbearable and practically impossible to get anything done.

Extension version: 1.22.2
VS Code version: Code 1.65.1 (8908a9ca0f221f36507231afb39d2d8d1e182702, 2022-03-08T02:09:03.269Z)
OS version: Linux x64 5.15.23-76051523-generic snap
Restricted Mode: No

System Info
Item Value
CPUs Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz (12 x 1245)
GPU Status 2d_canvas: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
opengl: enabled_on
rasterization: disabled_software
skia_renderer: enabled_on
video_decode: disabled_software
vulkan: disabled_off
webgl: enabled
webgl2: enabled
Load (avg) 5, 6, 6
Memory (System) 62.52GB (24.21GB free)
Process Argv --no-sandbox --force-user-env --unity-launch --crash-reporter-id c39da12a-ae4c-40d0-a7b2-c624a7009311
Screen Reader no
VM 0%
DESKTOP_SESSION pop
XDG_CURRENT_DESKTOP Unity
XDG_SESSION_DESKTOP pop
XDG_SESSION_TYPE x11
Process Info
CPU %	Mem MB	   PID	Process
    1	   128	1062547	code main
    0	     0	1062549	   zygote
    1	   128	1062610	     gpu-process
    0	     0	1062550	   zygote
    0	    64	1240896	     issue-reporter
    0	    64	1062619	   utility-network-service
    4	   128	1063065	   shared-process
    0	    64	1063120	     ptyHost
    0	     0	1116332	       /usr/bin/zsh
    0	     0	1241113	     /bin/sh -c /usr/bin/ps -ax -o pid=,ppid=,pcpu=,pmem=,command=
    0	     0	1241114	       /usr/bin/ps -ax -o pid=,ppid=,pcpu=,pmem=,command=
   17	   256	1241014	   extensionHost
Workspace Info
|  Window (TellerV2.sol - Untitled (Workspace) - Visual Studio Code)
|    Folder (hardhat-ts): 494 files
|      File types: json(193) ts(125) sol(34) chainId(4)
|                  latestDeploymentBlock(4) forkingNetwork(2) env(1) template(1)
|                  eslintrc(1) prettierrc(1)
|      Conf files: package.json(1) tsconfig.json(1)
|    Folder (v2-pilot-contracts): 4192 files
|      File types: zip(3365) json(232) ts(167) png(43) sol(34) tsx(34) svg(17)
|                  js(10) css(7) md(6)
|      Conf files: package.json(5) github-actions(3) settings.json(2)
|                  tsconfig.json(2) dockerfile(2);
A/B Experiments
vsliv368:30146709
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
pythonvspyl392:30443607
pythontb:30283811
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
vscoreces:30445986
pythondataviewer:30285071
vscod805cf:30301675
pythonvspyt200:30340761
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
vsaa593cf:30376535
vsc1dst:30438360
pythonvs932:30410667
wslgetstarted:30449410
vsclayoutctrt:30448491
dsvsc008:30440022
pythonvsnew555:30450167
vsbas813:30436447
vscscmwlcmc:30438804
vscgsvid1:30447480
helix:30440343
pynewfile477cf:30450039

@northernocean
Copy link

I'm not sure you can blame this on vscode vim ... I can type in files with tens of thousands of lines of code without noticing any slowness in keyboarding speed (also on linux).

Do you have other extensions installed? Maybe there is some conflict there.

@J-Fields
Copy link
Member

Do you have other extensions installed? Maybe there is some conflict there.

This is the culprit, generally. The way the extension host is designed, VSCodeVim forces you to feel the effect of other extensions that are slow when you wouldn't otherwise.

If this is a big problem for you, https://github.com/vscode-neovim/vscode-neovim may work better; I don't think their design suffers from this.

@faea726
Copy link

faea726 commented Nov 1, 2022

Do you have other extensions installed? Maybe there is some conflict there.

This is the culprit, generally. The way the extension host is designed, VSCodeVim forces you to feel the effect of other extensions that are slow when you wouldn't otherwise.

If this is a big problem for you, https://github.com/vscode-neovim/vscode-neovim may work better; I don't think their design suffers from this.

Good point. I've just changed to vscode-neovim. Crazy fast.

@brokenthorn
Copy link

Just recently also started seeing this issue with large files (~1000 lines).
I tried uninstalling and/or disabling all extensions to test and nothing fixed it until I disabled VSCodeVIM. I didn't even have to restart. So sad. I might have to switch to vim completely... but I use LiveShare a lot to pair program :(.

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

No branches or pull requests

5 participants