Repository navigation
factorai v0.46.0
A performance release. One measured audit (specs/10-performance.md) found twenty-eight things, and the fourteen that gate a public release are fixed here. Every number below is before and after on the same machine and the same workspace.
The index stopped re-reading everything
| before | after | |
|---|---|---|
| Re-index a 31 MB live transcript after one new turn | 4.71 s | 32 ms |
| Delete one session's rows from the search index (11 600 sessions) | 121 ms | 8.9 ms |
| A read arriving while the indexer holds a write | up to the whole transaction | 0.33 ms |
Transcripts are append-only, so the indexer now resumes where it stopped instead of parsing the file again. Messages moved into a real table with an index on the session, so removing one is a lookup rather than a scan of every session. And reads take their own pooled connection, so the sidebar no longer waits behind the indexer.
The app stops working when you are not looking at it
Polls used to run whether or not the window was in front — a desktop window is "visible" to a browser API even when it is behind your editor. Backend calls over a thirty-second idle window went from 21 to 4 with the window focused, and from 21 to 0 with it behind something else. A terminal you cannot see is flushed six times less often, and is no longer rendered at all.
Elsewhere
- Thirteen commands that spawn a process, walk the agent store or wait on I/O no longer run on the thread that paints the window. Decrypting a SOPS file, revealing a file in the file manager and opening a large PDF used to freeze it.
- The file tree stopped mounting five query observers per row. A 2 000-entry directory expands roughly twice as fast.
- Markdown with diagrams: 720 forced style recalculations became 9 on a twenty-diagram document, and diagrams no longer collapse and reflow while a new one is drawn.
- Panel and sidebar widths are written once you stop dragging instead of on every frame.
- The binary is 42% smaller — the release build had no optimisation profile at all.
Before you update
The search index is upgraded on first launch, and it is one-way. It takes about a tenth of a second and re-parses nothing, but a build older than this one will not be able to write to the upgraded index. Going back to 0.45.0 or earlier after this means deleting factorai.db and letting it rebuild.
Still slow, and known
Expanding a directory with thousands of entries is better but still well outside where it should be; the tree is not virtualized yet. That, and the remaining findings the audit turned up, are tracked as P2 in the performance spec.