Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

## Unreleased

## 0.2.5862 - 2026-10-27

- Enable the Zig bbtree inline-key dictionary by default for warm mmap word indexes. Keep postings zero-copy and preserve exact/prefix results, ranking, hosted fallback, and ANN candidate breadth (#772).
- Bound accelerator memory to one exact-size slab, at most 8 MiB per mmap word index. Over-budget dictionaries and allocation failures retain complete binary search; promotion frees the slab before unmapping.
- Include the isolated macOS watcher CPU fixes already integrated in 0.2.5861 via #758/#771, without importing unrelated changes from #750.

## 0.2.5861 - 2026-10-26

- Use recursive macOS events on local APFS/HFS volumes, with at most 64 content probes every two seconds and directory audits every 60 seconds, reducing idle watcher CPU (#756, #758). Fallback filesystems retain conservative polling. Each MCP client still owns a watcher.
Expand Down
16 changes: 16 additions & 0 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,20 @@ pub fn build(b: *std.Build) void {
const run_step = b.step("run", "Run codedb daemon");
run_step.dependOn(&run_cmd.step);

// Opt-in, local-only warm mmap dictionary A/B experiment.
const bb_bench = b.addExecutable(.{
.name = "bench-bbtree",
.root_module = b.createModule(.{
.root_source_file = b.path("src/bench_bbtree.zig"),
.target = target,
.optimize = optimize,
.link_libc = true,
}),
});
const bb_run = b.addRunArtifact(bb_bench);
bb_run.addPassthruArgs();
b.step("bench-bbtree", "Compare bbtree and binary search on warm mmap words").dependOn(&bb_run.step);

// ── Tests (split into independent binaries for faster compilation) ──
const test_filter = b.option([]const u8, "test-filter", "Only run tests whose name contains this substring");
const test_step = b.step("test", "Run all tests");
Expand All @@ -92,6 +106,8 @@ pub fn build(b: *std.Build) void {
.{ .name = "test-core", .path = "src/test_core.zig", .needs_nanoregex = false },
.{ .name = "test-explore", .path = "src/test_explore.zig", .needs_nanoregex = true },
.{ .name = "test-index", .path = "src/test_index.zig", .needs_nanoregex = true },
.{ .name = "test-bbtree", .path = "src/test_bbtree.zig", .needs_nanoregex = false },
.{ .name = "test-bbtree-memory", .path = "src/test_bbtree_memory.zig", .needs_nanoregex = false },
.{ .name = "test-watcher", .path = "src/watcher.zig", .needs_nanoregex = true },
.{ .name = "test-parser", .path = "src/test_parser.zig", .needs_nanoregex = true },
.{ .name = "test-search", .path = "src/test_search.zig", .needs_nanoregex = true },
Expand Down
2 changes: 1 addition & 1 deletion build.zig.zon
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.{
.name = .codedb2,
.fingerprint = 0x6e18d96ca2a31757,
.version = "0.2.5861",
.version = "0.2.5862",
.minimum_zig_version = "0.17.0-dev.813+2153f8143",
.dependencies = .{
.nanoregex = .{
Expand Down
Loading
Loading