Skip to content

Slow intellisense with large TS enum (3000+ rows) #42824

Description

@woophi

Issue Type: Performance Issue

I have a large enum with 3000+ rows. https://pastebin.com/uBXCNxSb
When I try to access some methods or types that have imported this enum - it takes about 20-60 seconds to resolve autocomplete or autoimport.

Do you have any advice or thoughts - how to speed up it?

VS Code version: Code 1.53.2 (622cb03f7e070a9670c94bae1a45d78d7181fbd4, 2021-02-11T11:48:04.245Z)
OS version: Windows_NT x64 10.0.19042

System Info
ItemValue
CPUsIntel(R) Core(TM) i7-9750H CPU @ 2.60GHz (12 x 2592)
GPU Status2d_canvas: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
protected_video_decode: unavailable_off
rasterization: enabled
skia_renderer: enabled_on
video_decode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
Load (avg)undefined
Memory (System)15.92GB (8.43GB free)
Process ArgvC:\workflow\vk-friends-app --crash-reporter-id 44b7a940-efb4-4a93-8ff7-b223b05e746f
Screen Readerno
VM0%
Process Info
CPU %	Mem MB PID	Process
0 93 24988	code main
0 87 1608 gpu-process
0 23 11480 crashpad-handler
0 38 20336 utility
0 77 22056 window (Issue Reporter)
0 85 22796 shared-process
0 161 23696 window (vk-friends-app - Visual Studio Code)
0 112 1592 extensionHost
0 69 3920 searchService
0 12 7204 watcherService 0 11 23196 console-window-host (Windows internal process)
Workspace Info
| Window (vk-friends-app - Visual Studio Code)
| Folder (vk-friends-app): 4249 files
| File types: png(3188) ts(440) js(165) map(162) tsx(49) sql(22) json(11)
| xml(10) woff(7) woff2(7)
| Conf files: package.json(3) tsconfig.json(2) settings.json(1);
Extensions (11)
ExtensionAuthor (truncated)Version
gitlenseam11.2.1
prettier-vscodeesb5.9.2
git-graphmhu1.28.0
vscode-dockerms-1.9.1
pythonms-2021.1.502429796
jupyterms-2020.12.414227025
remote-wslms-0.53.4
vscode-typescript-tslint-pluginms-1.3.3
prismaPri2.16.1
vscode-iconsvsc11.1.0
material-themezhu3.9.15
A/B Experiments
vsliv368cf:30146710
vsreu685:30147344
python383cf:30185419
vspor879:30202332
vspor708:30202333
vspor363:30204092
vstry914:30256638
pythonvsdeb440:30248342
pythonvsded773:30248341
pythonvspyt600cf:30251589

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs More InfoThe issue still hasn't been fully clarified

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions