Commit graph

8 commits

Author SHA1 Message Date
Carl Niklas Rydberg 8ea3ec861f asl/index-fs: add neg-cache, bloom precheck, and fix O(N²) load_segment
- Introduce a 256-entry ring-buffer negative cache (neg_cache) to short-circuit
  repeated NOT_FOUND lookups without touching disk.  Invalidated on put/tombstone-lift.
- Add bloom precheck in scan_segments: read only the 368-byte header+bloom prefix
  before committing to a full segment load; segments that definitively miss are skipped.
- Remove summary_lookup_hash from load_segment; the linear scan over 40-byte entries
  was O(N²) on large indexes and is now replaced by a direct SHA-256 of the segment bytes.
- Gitignore .codex and .claude tool artifacts.
- Add test_miss_latency_bounded: regression test that builds 200 segments and asserts
  miss-path latency stays within 5 s total across 20 trials.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-17 22:12:11 +02:00
Carl Niklas Rydberg 807816e0f2 asl/index-fs: add snapshot-anchor fast path for get and tests 2026-04-04 02:33:21 +02:00
Carl Niklas Rydberg 745cf89eb7 Add ASL index accel routing key 2026-01-18 06:20:48 +01:00
Carl Niklas Rydberg dde532d68f Improve ASL store index lifecycle 2026-01-18 05:54:31 +01:00
Carl Niklas Rydberg 83cbe28ede asl_store_index_fs: add perf/stress tests and summaries 2026-01-17 19:49:12 +01:00
Carl Niklas Rydberg 017bc87e04 asl_store_index_fs: stream log snapshot/truncate 2026-01-17 17:58:59 +01:00
Carl Niklas Rydberg 0667cee17d Add bloom filters to ASL index segments 2026-01-17 16:55:46 +01:00
Carl Niklas Rydberg 347d2e4dda Add filesystem-backed ASL index store 2026-01-17 14:08:41 +01:00