Repository: vscode
Issue: Slow startup time on 1.82.0
Labels: freeze-slow-crash-leak,linux,under-discussion

With all extensions disabled, VS Code 1.82.0 takes 4x more time to start than VS Code 1.81.1, due to a slow renderer :

<details>
<summary>1.81.1</summary>

## System Info

* Code: 1.81.1 (6c3e3dba23e8fadc360aed75ce363ba185c49794)
* OS: linux(6.0.19-060019-generic)
* CPUs: 12th Gen Intel(R) Core(TM) i9-12900HK(20 x 4103)
* Memory(System): 31.01 GB(22.52GB free)
* Memory(Process): 185.98 MB working set(104.07MB private, 0.11MB shared)
* VM(likelihood): 0%
* Initial Startup: true
* Has 0 other windows
* Screen Reader Active: false
* Empty Workspace: true

## Performance Marks

| What                                                            | Duration | Process                   | Info                                                       |
| --------------------------------------------------------------- | -------- | ------------------------- | ---------------------------------------------------------- |
| start => app.isReady                                            | 94       | [main]                    | initial startup: true                                      |
| nls:start => nls:end                                            | 2        | [main]                    | initial startup: true                                      |
| require(main.bundle.js)                                         | 64       | [main]                    | initial startup: true                                      |
| start crash reporter                                            | 3        | [main]                    | initial startup: true                                      |
| serve main IPC handle                                           | 1        | [main]                    | initial startup: true                                      |
| create window                                                   | 29       | [main]                    | initial startup: true, state: 0ms, widget: 28ms, show: 0ms |
| app.isReady => window.loadUrl()                                 | 114      | [main]                    | initial startup: true                                      |
| window.loadUrl() => begin to require(workbench.desktop.main.js) | 320      | [main->renderer]          | NewWindow                                                  |
| require(workbench.desktop.main.js)                              | 385      | [renderer]                | cached data: NO, node_modules took 0ms                     |
| wait for window config                                          | 1        | [renderer]                | -                                                          |
| init storage (global & workspace)                               | 27       | [renderer]                | -                                                          |
| init workspace service                                          | 16       | [renderer]                | -                                                          |
| register extensions & spawn extension host                      | 71       | [renderer]                | -                                                          |
| restore viewlet                                                 | 0        | [renderer]                | -                                                          |
| restore panel                                                   | 0        | [renderer]                | -                                                          |
| restore & resolve visible editors                               | 3        | [renderer]                | 0:                                                         |
| overall workbench load                                          | 84       | [renderer]                | -                                                          |
| workbench ready                                                 | 1031     | [main->renderer]          | -                                                          |
| renderer ready                                                  | 505      | [renderer]                | -                                                          |
| shared process connection ready                                 | 161      | [renderer->sharedprocess] | -                                                          |
| extensions registered                                           | 1150     | [renderer]                | -                                                          |

## Raw Perf Marks: renderer

```
Name	Timestamp	Delta	Total
code/timeOrigin	1694119745894	0	0
code/didStartRenderer	1694119746211	317	317
code/willWaitForWindowConfig	1694119746211	0	317
code/didWaitForWindowConfig	1694119746212	1	318
code/willShowPartsSplash	1694119746212	0	318
code/didShowPartsSplash	1694119746213	1	319
code/willLoadWorkbenchMain	1694119746213	0	319
code/didLoadWorkbenchMain	1694119746598	385	704
code/registerFilesystem/file	1694119746601	3	707
code/registerFilesystem/vscode-userdata	1694119746601	0	707
code/willInitWorkspaceService	1694119746602	1	708
code/willInitStorage	1694119746603	1	709
code/willInitUserConfiguration	1694119746606	3	712
code/didInitUserConfiguration	1694119746617	11	723
code/willInitWorkspaceConfiguration	1694119746617	0	723
code/didInitWorkspaceConfiguration	1694119746618	1	724
code/didInitWorkspaceService	1694119746618	0	724
code/didInitStorage	1694119746630	12	736
code/willStartWorkbench	1694119746632	2	738
code/LifecyclePhase/Ready	1694119746633	1	739
code/willCreateWorkbenchContributions/1	1694119746652	19	758
code/didCreateWorkbenchContributions/1	1694119746672	20	778
code/willCreateWorkbenchContributions/2	1694119746672	0	778
code/registerFilesystem/trustedDomains	1694119746674	2	780
code/registerFilesystem/vscode-local-history	1694119746677	3	783
code/didCreateWorkbenchContributions/2	1694119746678	1	784
code/willCreatePart/workbench.parts.titlebar	1694119746679	1	785
code/didCreatePart/workbench.parts.titlebar	1694119746683	4	789
code/willCreatePart/workbench.parts.banner	1694119746683	0	789
code/didCreatePart/workbench.parts.banner	1694119746683	0	789
code/willCreatePart/workbench.parts.activitybar	1694119746683	0	789
code/didCreatePart/workbench.parts.activitybar	1694119746685	2	791
code/willCreatePart/workbench.parts.sidebar	1694119746685	0	791
code/didCreatePart/workbench.parts.sidebar	1694119746686	1	792
code/willCreatePart/workbench.parts.editor	1694119746686	0	792
code/didCreatePart/workbench.parts.editor	1694119746702	16	808
code/willCreatePart/workbench.parts.panel	1694119746702	0	808
code/didCreatePart/workbench.parts.panel	1694119746703	1	809
code/willCreatePart/workbench.parts.auxiliarybar	1694119746703	0	809
code/didCreatePart/workbench.parts.auxiliarybar	1694119746704	1	810
code/willCreatePart/workbench.parts.statusbar	1694119746704	0	810
code/didCreatePart/workbench.parts.statusbar	1694119746705	1	811
code/didRemovePartsSplash	1694119746712	7	818
code/willRestoreEditors	1694119746713	1	819
code/restoreEditors/editorGroupsReady	1694119746714	1	820
code/restoreEditors/editorsToOpenResolved	1694119746715	1	821
code/willRegisterExplorerViews	1694119746715	0	821
code/didRegisterExplorerViews	1694119746715	0	821
code/restoreEditors/editorGroupsRestored	1694119746716	1	822
code/didRestoreEditors	1694119746716	0	822
code/didStartWorkbench	1694119746716	0	822
code/LifecyclePhase/Restored	1694119746716	0	822
code/willCreateWorkbenchContributions/3	1694119746716	0	822
code/willConnectSharedProcess	1694119746716	0	822
code/willLoadExtensions	1694119746764	48	870
code/willHandleExtensionPoints	1694119746800	36	906
code/willHandleExtensionPoint/configurationDefaults	1694119746800	0	906
code/didHandleExtensionPoint/configurationDefaults	1694119746800	0	906
code/willHandleExtensionPoint/configuration	1694119746800	0	906
code/didHandleExtensionPoint/configuration	1694119746811	11	917
code/willHandleExtensionPoint/jsonValidation	1694119746811	0	917
code/didHandleExtensionPoint/jsonValidation	1694119746811	0	917
code/willHandleExtensionPoint/debuggers	1694119746811	0	917
code/didHandleExtensionPoint/debuggers	1694119746811	0	917
code/willHandleExtensionPoint/breakpoints	1694119746811	0	917
code/didHandleExtensionPoint/breakpoints	1694119746811	0	917
code/willHandleExtensionPoint/notebooks	1694119746811	0	917
code/didHandleExtensionPoint/notebooks	1694119746812	1	918
code/willHandleExtensionPoint/notebookRenderer	1694119746812	0	918
code/didHandleExtensionPoint/notebookRenderer	1694119746813	1	919
code/willHandleExtensionPoint/problemPatterns	1694119746813	0	919
code/didHandleExtensionPoint/problemPatterns	1694119746813	0	919
code/willHandleExtensionPoint/problemMatchers	1694119746813	0	919
code/didHandleExtensionPoint/problemMatchers	1694119746814	1	920
code/willHandleExtensionPoint/taskDefinitions	1694119746814	0	920
code/didHandleExtensionPoint/taskDefinitions	1694119746814	0	920
code/willHandleExtensionPoint/terminal	1694119746814	0	920
code/didHandleExtensionPoint/terminal	1694119746814	0	920
code/willHandleExtensionPoint/terminalQuickFixes	1694119746814	0	920
code/didHandleExtensionPoint/terminalQuickFixes	1694119746814	0	920
code/willHandleExtensionPoint/commands	1694119746814	0	920
code/didHandleExtensionPoint/commands	1694119746816	2	922
code/willHandleExtensionPoint/submenus	1694119746816	0	922
code/didHandleExtensionPoint/submenus	1694119746816	0	922
code/willHandleExtensionPoint/menus	1694119746816	0	922
code/didHandleExtensionPoint/menus	1694119746821	5	927
code/willHandleExtensionPoint/authentication	1694119746821	0	927
code/didHandleExtensionPoint/authentication	1694119746821	0	927
code/willHandleExtensionPoint/languages	1694119746821	0	927
code/didHandleExtensionPoint/languages	1694119746824	3	930
code/willHandleExtensionPoint/customEditors	1694119746824	0	930
code/didHandleExtensionPoint/customEditors	1694119746824	0	930
code/willHandleExtensionPoint/codeActions	1694119746824	0	930
code/didHandleExtensionPoint/codeActions	1694119746824	0	930
code/willHandleExtensionPoint/viewsWelcome	1694119746824	0	930
code/didHandleExtensionPoint/viewsWelcome	1694119746824	0	930
code/willHandleExtensionPoint/grammars	1694119746824	0	930
code/didHandleExtensionPoint/grammars	1694119746826	2	932
code/willHandleExtensionPoint/colors	1694119746826	0	932
code/didHandleExtensionPoint/colors	1694119746826	0	932
code/willHandleExtensionPoint/semanticTokenScopes	1694119746826	0	932
code/didHandleExtensionPoint/semanticTokenScopes	1694119746826	0	932
code/willHandleExtensionPoint/themes	1694119746826	0	932
code/didHandleExtensionPoint/themes	1694119746827	1	933
code/willHandleExtensionPoint/iconThemes	1694119746827	0	933
code/didHandleExtensionPoint/iconThemes	1694119746827	0	933
code/willHandleExtensionPoint/snippets	1694119746827	0	933
code/didHandleExtensionPoint/snippets	1694119746827	0	933
code/willHandleExtensionPoint/keybindings	1694119746827	0	933
code/didHandleExtensionPoint/keybindings	1694119746830	3	936
code/willHandleExtensionPoint/viewsContainers	1694119746830	0	936
code/didHandleExtensionPoint/viewsContainers	1694119746832	2	938
code/willHandleExtensionPoint/views	1694119746832	0	938
code/didHandleExtensionPoint/views	1694119746833	1	939
code/willHandleExtensionPoint/continueEditSession	1694119746833	0	939
code/didHandleExtensionPoint/continueEditSession	1694119746833	0	939
code/didHandleExtensionPoints	1694119746833	0	939
code/didLoadExtensions	1694119746835	2	941
code/didConnectSharedProcess	1694119746877	42	983
code/terminal/willGetTerminalBackend	1694119746900	23	1006
code/terminal/didGetTerminalBackend	1694119746900	0	1006
code/terminal/willReconnect	1694119746900	0	1006
code/terminal/willGetTerminalLayoutInfo	1694119746900	0	1006
code/terminal/didGetTerminalLayoutInfo	1694119746903	3	1009
code/terminal/didReconnect	1694119746903	0	1009
code/terminal/willReplay	1694119746903	0	1009
code/terminal/didReplay	1694119746903	0	1009
code/terminal/willGetPerformanceMarks	1694119746903	0	1009
code/terminal/didGetPerformanceMarks	1694119746919	16	1025
```

</details>

<details>
<summary>1.82.0</summary>

## System Info

* Code: 1.82.0 (8b617bd08fd9e3fc94d14adb8d358b56e3f72314)
* OS: linux(6.0.19-060019-generic)
* CPUs: 12th Gen Intel(R) Core(TM) i9-12900HK(20 x 4220)
* Memory(System): 31.01 GB(22.78GB free)
* Memory(Process): 184.13 MB working set(101.13MB private, 0.86MB shared)
* VM(likelihood): 0%
* Initial Startup: true
* Has 0 other windows
* Screen Reader Active: false
* Empty Workspace: true

## Performance Marks

| What                                                            | Duration | Process                   | Info                                                       |
| --------------------------------------------------------------- | -------- | ------------------------- | ---------------------------------------------------------- |
| start => app.isReady                                            | 60       | [main]                    | initial startup: true                                      |
| nls:start => nls:end                                            | 3        | [main]                    | initial startup: true                                      |
| require(main.bundle.js)                                         | 58       | [main]                    | initial startup: true                                      |
| start crash reporter                                            | 3        | [main]                    | initial startup: true                                      |
| serve main IPC handle                                           | 1        | [main]                    | initial startup: true                                      |
| create window                                                   | 25       | [main]                    | initial startup: true, state: 0ms, widget: 23ms, show: 0ms |
| app.isReady => window.loadUrl()                                 | 104      | [main]                    | initial startup: true                                      |
| window.loadUrl() => begin to require(workbench.desktop.main.js) | 2619     | [main->renderer]          | NewWindow                                                  |
| require(workbench.desktop.main.js)                              | 365      | [renderer]                | cached data: NO, node_modules took 0ms                     |
| wait for window config                                          | 1        | [renderer]                | -                                                          |
| init storage (global & workspace)                               | 1034     | [renderer]                | -                                                          |
| init workspace service                                          | 1015     | [renderer]                | -                                                          |
| register extensions & spawn extension host                      | 83       | [renderer]                | -                                                          |
| restore viewlet                                                 | 0        | [renderer]                | -                                                          |
| restore panel                                                   | 0        | [renderer]                | -                                                          |
| restore & resolve visible editors                               | 3        | [renderer]                | 0:                                                         |
| overall workbench load                                          | 77       | [renderer]                | -                                                          |
| workbench ready                                                 | 4267     | [main->renderer]          | -                                                          |
| renderer ready                                                  | 1488     | [renderer]                | -                                                          |
| shared process connection ready                                 | 150      | [renderer->sharedprocess] | -                                                          |
| extensions registered                                           | 4398     | [renderer]                | -                                                          |

## Raw Perf Marks: renderer

```
Name	Timestamp	Delta	Total
code/timeOrigin	1694119538034	0	0
code/didStartRenderer	1694119540648	2614	2614
code/willWaitForWindowConfig	1694119540649	1	2615
code/didWaitForWindowConfig	1694119540650	1	2616
code/willShowPartsSplash	1694119540651	1	2617
code/didShowPartsSplash	1694119540651	0	2617
code/willLoadWorkbenchMain	1694119540652	1	2618
code/didLoadWorkbenchMain	1694119541017	365	2983
code/registerFilesystem/file	1694119541019	2	2985
code/registerFilesystem/vscode-userdata	1694119541020	1	2986
code/willInitWorkspaceService	1694119541021	1	2987
code/willInitStorage	1694119541021	0	2987
code/willInitUserConfiguration	1694119542017	996	3983
code/didInitUserConfiguration	1694119542035	18	4001
code/willInitWorkspaceConfiguration	1694119542035	0	4001
code/didInitWorkspaceConfiguration	1694119542036	1	4002
code/didInitWorkspaceService	1694119542036	0	4002
code/didInitStorage	1694119542055	19	4021
code/willStartWorkbench	1694119542059	4	4025
code/LifecyclePhase/Ready	1694119542060	1	4026
code/willCreateWorkbenchContributions/1	1694119542089	29	4055
code/didCreateWorkbenchContributions/1	1694119542095	6	4061
code/willCreateWorkbenchContributions/2	1694119542095	0	4061
code/registerFilesystem/trustedDomains	1694119542097	2	4063
code/registerFilesystem/vscode-local-history	1694119542099	2	4065
code/didCreateWorkbenchContributions/2	1694119542100	1	4066
code/willCreatePart/workbench.parts.titlebar	1694119542102	2	4068
code/didCreatePart/workbench.parts.titlebar	1694119542113	11	4079
code/willCreatePart/workbench.parts.banner	1694119542113	0	4079
code/didCreatePart/workbench.parts.banner	1694119542113	0	4079
code/willCreatePart/workbench.parts.activitybar	1694119542113	0	4079
code/didCreatePart/workbench.parts.activitybar	1694119542115	2	4081
code/willCreatePart/workbench.parts.sidebar	1694119542115	0	4081
code/didCreatePart/workbench.parts.sidebar	1694119542116	1	4082
code/willCreatePart/workbench.parts.editor	1694119542116	0	4082
code/didCreatePart/workbench.parts.editor	1694119542123	7	4089
code/willCreatePart/workbench.parts.panel	1694119542123	0	4089
code/didCreatePart/workbench.parts.panel	1694119542124	1	4090
code/willCreatePart/workbench.parts.auxiliarybar	1694119542124	0	4090
code/didCreatePart/workbench.parts.auxiliarybar	1694119542124	0	4090
code/willCreatePart/workbench.parts.statusbar	1694119542124	0	4090
code/didCreatePart/workbench.parts.statusbar	1694119542125	1	4091
code/didRemovePartsSplash	1694119542132	7	4098
code/willRestoreEditors	1694119542133	1	4099
code/restoreEditors/editorGroupsReady	1694119542134	1	4100
code/restoreEditors/editorsToOpenResolved	1694119542135	1	4101
code/willRegisterExplorerViews	1694119542135	0	4101
code/didRegisterExplorerViews	1694119542135	0	4101
code/restoreEditors/editorGroupsRestored	1694119542136	1	4102
code/didRestoreEditors	1694119542136	0	4102
code/didStartWorkbench	1694119542136	0	4102
code/LifecyclePhase/Restored	1694119542136	0	4102
code/willCreateWorkbenchContributions/3	1694119542136	0	4102
code/willConnectSharedProcess	1694119542136	0	4102
code/willLoadExtensions	1694119542184	48	4150
code/willHandleExtensionPoints	1694119542237	53	4203
code/willHandleExtensionPoint/configurationDefaults	1694119542238	1	4204
code/didHandleExtensionPoint/configurationDefaults	1694119542238	0	4204
code/willHandleExtensionPoint/configuration	1694119542238	0	4204
code/didHandleExtensionPoint/configuration	1694119542245	7	4211
code/willHandleExtensionPoint/jsonValidation	1694119542245	0	4211
code/didHandleExtensionPoint/jsonValidation	1694119542246	1	4212
code/willHandleExtensionPoint/debuggers	1694119542246	0	4212
code/didHandleExtensionPoint/debuggers	1694119542246	0	4212
code/willHandleExtensionPoint/breakpoints	1694119542246	0	4212
code/didHandleExtensionPoint/breakpoints	1694119542246	0	4212
code/willHandleExtensionPoint/notebooks	1694119542246	0	4212
code/didHandleExtensionPoint/notebooks	1694119542246	0	4212
code/willHandleExtensionPoint/notebookRenderer	1694119542246	0	4212
code/didHandleExtensionPoint/notebookRenderer	1694119542247	1	4213
code/willHandleExtensionPoint/problemPatterns	1694119542247	0	4213
code/didHandleExtensionPoint/problemPatterns	1694119542248	1	4214
code/willHandleExtensionPoint/problemMatchers	1694119542248	0	4214
code/didHandleExtensionPoint/problemMatchers	1694119542248	0	4214
code/willHandleExtensionPoint/taskDefinitions	1694119542248	0	4214
code/didHandleExtensionPoint/taskDefinitions	1694119542249	1	4215
code/willHandleExtensionPoint/terminal	1694119542249	0	4215
code/didHandleExtensionPoint/terminal	1694119542249	0	4215
code/willHandleExtensionPoint/terminalQuickFixes	1694119542249	0	4215
code/didHandleExtensionPoint/terminalQuickFixes	1694119542249	0	4215
code/willHandleExtensionPoint/commands	1694119542249	0	4215
code/didHandleExtensionPoint/commands	1694119542250	1	4216
code/willHandleExtensionPoint/submenus	1694119542250	0	4216
code/didHandleExtensionPoint/submenus	1694119542250	0	4216
code/willHandleExtensionPoint/menus	1694119542250	0	4216
code/didHandleExtensionPoint/menus	1694119542253	3	4219
code/willHandleExtensionPoint/authentication	1694119542253	0	4219
code/didHandleExtensionPoint/authentication	1694119542253	0	4219
code/willHandleExtensionPoint/languages	1694119542253	0	4219
code/didHandleExtensionPoint/languages	1694119542255	2	4221
code/willHandleExtensionPoint/customEditors	1694119542255	0	4221
code/didHandleExtensionPoint/customEditors	1694119542255	0	4221
code/willHandleExtensionPoint/codeActions	1694119542255	0	4221
code/didHandleExtensionPoint/codeActions	1694119542255	0	4221
code/willHandleExtensionPoint/viewsWelcome	1694119542255	0	4221
code/didHandleExtensionPoint/viewsWelcome	1694119542255	0	4221
code/willHandleExtensionPoint/grammars	1694119542255	0	4221
code/didHandleExtensionPoint/grammars	1694119542256	1	4222
code/willHandleExtensionPoint/colors	1694119542256	0	4222
code/didHandleExtensionPoint/colors	1694119542257	1	4223
code/willHandleExtensionPoint/semanticTokenScopes	1694119542257	0	4223
code/didHandleExtensionPoint/semanticTokenScopes	1694119542257	0	4223
code/willHandleExtensionPoint/themes	1694119542257	0	4223
code/didHandleExtensionPoint/themes	1694119542257	0	4223
code/willHandleExtensionPoint/iconThemes	1694119542257	0	4223
code/didHandleExtensionPoint/iconThemes	1694119542257	0	4223
code/willHandleExtensionPoint/snippets	1694119542257	0	4223
code/didHandleExtensionPoint/snippets	1694119542257	0	4223
code/willHandleExtensionPoint/keybindings	1694119542257	0	4223
code/didHandleExtensionPoint/keybindings	1694119542261	4	4227
code/willHandleExtensionPoint/viewsContainers	1694119542261	0	4227
code/didHandleExtensionPoint/viewsContainers	1694119542263	2	4229
code/willHandleExtensionPoint/views	1694119542263	0	4229
code/didHandleExtensionPoint/views	1694119542264	1	4230
code/willHandleExtensionPoint/continueEditSession	1694119542264	0	4230
code/didHandleExtensionPoint/continueEditSession	1694119542264	0	4230
code/didHandleExtensionPoints	1694119542264	0	4230
code/didLoadExtensions	1694119542267	3	4233
code/didConnectSharedProcess	1694119542286	19	4252
code/terminal/willGetTerminalBackend	1694119542301	15	4267
code/terminal/didGetTerminalBackend	1694119542301	0	4267
code/terminal/willReconnect	1694119542301	0	4267
code/terminal/willGetTerminalLayoutInfo	1694119542301	0	4267
code/terminal/didGetTerminalLayoutInfo	1694119542303	2	4269
code/terminal/didReconnect	1694119542303	0	4269
code/terminal/willReplay	1694119542303	0	4269
code/terminal/didReplay	1694119542303	0	4269
code/terminal/willGetPerformanceMarks	1694119542303	0	4269
code/terminal/didGetPerformanceMarks	1694119542305	2	4271
```

</details>

Detailed profiles :
[profile 1.81.1.tar.gz](https://github.com/microsoft/vscode/files/12553490/profile.1.81.1.tar.gz)
[profile 1.82.0.tar.gz](https://github.com/microsoft/vscode/files/12553491/profile.1.82.0.tar.gz)

OS : Linux Mint 21.2 Victoria