feat: wire hash_occurrence index into clones and find-symbol
- clones --tier exact: filters manifest to candidate files from index (O(K) parses instead of O(N) when clone files << total files) - find-symbol --body-hash: new flag for O(1) body-hash lookup using hash_occurrence index; falls back to full snapshot scan when absent - 7 new clones index acceleration tests - 9 new find-symbol --body-hash tests (mutually exclusive with --hash/--name, length validation, index vs scan path parity)
sha256:bbc40c1a14e1d2b9a0f9f46e425804f73f8adccc4f2e42438f595d1ab13e2daf
sha
+30
~8
symbols
sha256:dd5e4275e3b6b93c01dd3584c9c4a458a26deec4128b22290addbdd762e320c3
snapshot
+30
symbols added
~8
symbols modified
0
dead code introduced
Semantic Changes
38 symbols
~
run
+
test_exact_clones_with_index_match_live_scan
method
method test_exact_clones_with_index_match_live_scan L899–914
+
test_index_accelerated_respects_file_filter
method
method test_index_accelerated_respects_file_filter L932–940
+
test_index_accelerated_respects_min_cluster
method
method test_index_accelerated_respects_min_cluster L942–951
+
test_near_clones_with_index_still_found
method
method test_near_clones_with_index_still_found L953–959
+
test_no_index_falls_back_to_full_scan
method
method test_no_index_falls_back_to_full_scan L916–922
+
test_body_hash_and_hash_mutually_exclusive
method
method test_body_hash_and_hash_mutually_exclusive L577–583
+
test_body_hash_and_name_mutually_exclusive
method
method test_body_hash_and_name_mutually_exclusive L585–592
+
test_body_hash_falls_back_to_scan_without_index
method
method test_body_hash_falls_back_to_scan_without_index L623–636
+
test_body_hash_finds_exact_clone_addresses_with_index
method
method test_body_hash_finds_exact_clone_addresses_with_index L605–621
+
test_body_hash_not_found_exits_zero_empty_results
method
method test_body_hash_not_found_exits_zero_empty_results L594–603
+
test_body_hash_result_has_address_field
method
method test_body_hash_result_has_address_field L653–665
+
test_body_hash_results_match_index_and_scan
method
method test_body_hash_results_match_index_and_scan L667–689
+
test_body_hash_too_short_exits_nonzero
method
method test_body_hash_too_short_exits_nonzero L571–575
0 comments
To add a comment, use the Muse CLI:
muse hub commit comment sha256:bbc40c1a14e1d2b9a0f9f46e425804f73f8adccc4f2e42438f595d1ab13e2daf --body "your comment"
No comments yet. Be the first to start the discussion.