Skip to content

Reuse fixed token prices in level 9 parsing - #35

Merged
rafambn merged 2 commits into
dev-1.1.0from
cost-parser-speed
Sep 9, 2026
Merged

rafambn merged 2 commits into
dev-1.1.0from
cost-parser-speed

Conversation

@rafambn

@rafambn rafambn commented Sep 9, 2026

Copy link
Copy Markdown
Owner

Level 9 repeatedly recalculates the same fixed token prices while comparing match lengths. Cache length prices and hoist distance pricing out of that loop, preserving candidate order and ties.

Linux development JMH measured 1.11x on Rainier and 1.06x on the map-tile fixture, with Sunrise unchanged. These are short runs, with raw samples and errors in performance/2026-09-09-costspeed/RESULTS.md. Saved Kompress measurements are reused unchanged.

Linux JVM tests passed; all 70 corpus/level outputs passed both JDK and KFlate decoding and matched baseline SHA-256 hashes. All seven level 9 compression cases completed. Independent change against dev-1.1.0.

@rafambn
rafambn merged commit c2ffe0d into dev-1.1.0 Sep 9, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant