Skip to content

Decoder fixes - #250

Merged
dspicher merged 2 commits into
masterfrom
decoder-fixes
Jun 29, 2026
Merged

dspicher merged 2 commits into
masterfrom
decoder-fixes

Conversation

@dspicher

Copy link
Copy Markdown
Owner

No description provided.

dspicher added 2 commits June 29, 2026 12:00
The performance optimization that migrated
to the use of a perfect hash function [1]
has left the decoder overly permissive with
regards to invalid words that has to a
known value. We fix this by a subsequent
check powered by a constant-time lookup.
Thus, most of the performance gains of [1]
should remain.

Also, remove an unused clippy allow attribute.

[1] c7fd1ae
Instead, verify the expected length first
and access directly afterwards.

This protects against malformed long words.
@codecov

codecov Bot commented Jun 29, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (fcfdb07) to head (f354e41).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##            master      #250   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            5         5           
  Lines         1123      1138   +15     
=========================================
+ Hits          1123      1138   +15     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@dspicher
dspicher merged commit d22e009 into master Jun 29, 2026
8 checks passed
@dspicher

dspicher commented Jul 2, 2026

Copy link
Copy Markdown
Owner Author

Published as part of 0.5.0. Thanks!

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