Repository navigation
Layout 15: positions bit-packed per block, disjunction directories read in order - #106
Merged
Merged
Conversation
… order, kind lookup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Layout 15, from
tinshape/perf-integrate15(3a79ba2). Indexes built at layout 14 need aREINDEX, ortnsreencode --from 14(also from 13, 12, 11, 10, 9, 8 and 6).Positions bit-packed per block of 32 entries (page layout 15).
full_scorephrases −2.1%. Conjunctions and disjunctions ran the same instructions over the same pages; their cycles stayed within the host's drift.Disjunctions read group directories in order.
A directory frontier's decoder keeps its state in registers.
Kind lookup.
Tooling.
tnsreplay --planreplays several slices after one load and counts cycles and branch misses in-process on Linux.devbox.shgainsDEVBOX_DUMP_PREFIX.PGO retrained on layout 15 for aarch64 (d07348e) and x86_64 (b6cef80), both 40/40.
Answers. Scores are bit-identical over the 150M trace (1228 / 1253 / 1252 equal, 0 different;
--fullbyte-identical in all 3 styles). Ranked oracle 3762/3762. Conformance against TIN 1.0.3 and 1.0.4 is unchanged, 0 FAIL. Re-encoding the 150M dump 14 → 15 verifies 14/14 segments, each equal to its own merge.150M database: index 36.28 GB (layout 14: 37.76, −3.9%), 13 segments.
x86 replay, Sapphire Rapids (m7i.4xlarge), against a908527 (layout 14). 4 rotated rounds, outputs identical. Median cycles / instructions:
Local M4 campaign (new layout-15 database, run with the CI runners idle). QPS score /
full_score, change against layout 14 (48fc9a7):Verified locally:
script/test-all fullgreen, x86 tests under Rosetta (scalar and AVX2), engine and segment tests on Sapphire Rapids (AVX2 + AVX-512, scalar), PGO 40/40 on aarch64 and x86_64.