Skip to content

perf(mail): time the type: and reach: fields of cli-core mail search - #415

Merged
leemour merged 1 commit into
mainfrom
perf/mail-search-types
Nov 25, 2026
Merged

leemour merged 1 commit into
mainfrom
perf/mail-search-types

Conversation

@leemour

@leemour leemour commented Nov 25, 2026

Copy link
Copy Markdown
Member

Adds a "Search by type and reach" section and search.mjs to performance/mail/types, for cli-core#3372. It times 100,000 synthetic emails, one run at a load average of 22–28:

  • First search on a writable open: 18.4 s. This search types every email first.
  • First search on a read-only open: 1.5–1.8 s, close to the 2 s search limit. Nothing is kept.
  • Warm searches: 33–105 ms, against 40 ms for a plain word.

🤖 Generated with Claude Code

100,000 synthetic emails: the first type: search on a writable open types
every email first (18.4 s at load 25), a read-only open works them out in
memory (1.5-1.8 s, close to the 2 s search limit), warm searches take
33-105 ms against 40 ms for a plain word. For cli-core#3372.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@leemour
leemour merged commit 072395a into main Nov 25, 2026
1 check passed
@leemour
leemour deleted the perf/mail-search-types branch November 25, 2026 23:23
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