Skip to content

EN Search Performance

zhaiyanqi edited this page Nov 20, 2026 · 1 revision

Search performance and validation

简体中文 · Home / 首页

Core uses positional file reads, line indices, compressed source-row sets and parallel matching. Sparse directory results retain matching offsets; dense projections can share the full source index. Work scheduling is bounded and cancellation prevents new work from being acquired. Cache writing does not block result publication.

Repeated-query caching uses a process-local LRU bounded to 16 entries / 8 MiB of query and compressed-result data. Keys include source identity/content, encoding and query options. Reuse still validates the source; a cache hit is not a guarantee of zero disk I/O. Canceled or invalidated snapshots cannot become successful cached results.

Non-UTF-8 search uses bounded decoding batches; UTF-8 can borrow byte slices. Result limits preserve source order, with an extra match used to detect truncation. Parallel completion order must not choose which rows count as the first N. Ordinary UI searches publish complete results rather than partial progress previews.

Performance depends on file size, line count/length, encoding, storage, result density and parallelism. The fast-refresh middle-rewrite limitation is documented in Live logs.

Existing coverage lives in crates/vclogg-core/tests/, core document tests and workspace capability tests. Historical timings and test counts remain in the archive. No application benchmark or test was rerun for this migration; do not quote old timings as current measurements.

中文首页 · English home

第一次使用 · First investigation

阅读与搜索日志 · Read and search logs

过滤器与个人设置 · Filters and preferences

帮助与隐私 · Help and privacy

开发与参考 · Development and reference

Clone this wiki locally