Skip to content

extensibility: preload extension bundles in web app

Warren Gifford requested to merge tjk/preload-extensions into main

Created by: tjkandala

Part of RFC 411: Sourcegraph extensions performance. Closes #23367 (closed).

Kick off parallel loading of extension bundles in the main thread before requests are made through importScripts() in the extension host Web Worker. Consequently, bundles are downloaded in parallel (importScripts downloads sequentially).

New waterfall

New waterfall

The biggest bottleneck remaining is the Extensions query, which we plan on persisting to localStorage, so soon we should be able to load extensions before even the file loads:

Screenshot from 2021-08-25 18-03-06

Old waterfall

Old waterfall

Good riddance 😩

Merge request reports

Loading