Commit Graph
2 Commits
Author SHA1 Message Date
liukx0205 cc93a902a0 perf(session): select SQLite frame compression by config and decode frames concurrently
The plugin's compression setting now also selects the physical encoding of
new frames: zstd compresses a frame when that shrinks it, none stores the
text. Stored frames decode by their own codec. A read decodes eight frames
at a time on the thread pool and yields between groups.
2026-11-17 18:00:51 +08:00
liukx0205 ddd1850920 perf(session): store SQLite events as compressed frames
Each durable write stores one frame of JSON lines, Zstandard-compressed when
that is smaller than the UTF-8 text, in a rowid table keyed by Segment and
start sequence; the Segment event count is the last frame's end. Reads select
the frames overlapping the requested range and decode their slices, yielding
between frames. The schema version advances to 2; a version 1 database is
refused as before.
2026-11-17 18:00:51 +08:00