Skip to content

Speed up Docs mention search - #4006

Merged
brsbl merged 6 commits into
mainfrom
bb/speed-up-plugin-result-loading-thr_nzrmhfzj5h
Sep 22, 2026
Merged

brsbl merged 6 commits into
mainfrom
bb/speed-up-plugin-result-loading-thr_nzrmhfzj5h

Conversation

@brsbl

@brsbl brsbl commented Sep 21, 2026 •

Copy link
Copy Markdown
Collaborator

Human comments

What was wrong

Docs read every Markdown file sequentially for each mention query. Its two-second timeout delayed all providers sharing @ search.

What changed

  • Read up to eight files concurrently and share note summaries across searches for ten seconds.
  • Edits, moves, deletions, and filesystem notifications invalidate cached summaries.
  • Selected notes resolve to fresh content when sending.

How you verified

  • Remote CI passed on 6966e4fd1, including 103 Docs tests.
  • With 300 notes, repeated searches fell from 874–1,036 ms to 11–62 ms; cold search took 501 ms.
  • Chrome for Testing 153.0.8010.36 verified search narrowing, note selection, and edited-title refresh.

BB-Thread-ID: thr_yb6fybb59q

AGENT GENERATED

@brsbl
brsbl merged commit 3d70b96 into main Sep 22, 2026
25 of 26 checks passed
@brsbl
brsbl deleted the bb/speed-up-plugin-result-loading-thr_nzrmhfzj5h branch September 22, 2026 22:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant