Idea detail
performance
reqlan rq/extension/module/activitybar.rq:152
block
done
Summary
Sidebar webviews share the same constraints as webview_threading.
- The HTML / Svelte shell paints before index discovery begins; the post-paint `ready` handshake starts indexing.
- Keep sql. js outside the activation-critical host bundle and load it only when a database opens.
- Default neighbourhood slices; never load the full workspace graph into a pane.
- Debounce editor selection and cursor events before rebuilding slices.
- Lazy-mount cytoscape only for visible sub-panes; destroy when collapsed or hidden.
- Reuse local_graph_analysis and graph query builders rather than ad-hoc index walks in the webview.
Attributes
| Key | Value |
|---|---|
| tests | startup-gate.test.ts, workspace-index-lazy-services.test.ts |
| status | done |
Ancestor context
No ancestor chain recorded.
| Kind | Idea | Path | Snippet |
|---|---|---|---|
| None | |||
| Kind | Idea | Path | Snippet |
|---|---|---|---|
| references | local_graph_analysis | local_graph_analysis | |
| references | webview_threading | webview_threading |
Initialising graph…