Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Correctly handle lines that cross buffer boundaries. #902

Merged
merged 9 commits into from
Jul 17, 2024
Merged

Conversation

jaqx0r
Copy link
Contributor

@jaqx0r jaqx0r commented Jul 16, 2024

FileStream had been fixed a while back but we still had this problem for the other LogStream implementations.

This new code extracts the common read handling and manages the read buffer between calls.

It regresses in the handling of rune errors by choosing to do nothing to them instead of converting them. It is also faster in half the BenchmarkProgram benchmarks as a result of not caring to decode the runes. The other half... are they slower because the decoder has been fixed to not skip bytes?

Issue: #637

Copy link
Contributor

github-actions bot commented Jul 16, 2024

Unit Test Results

    1 files     27 suites   8m 51s ⏱️
  669 tests   667 ✅ 2 💤 0 ❌
1 980 runs  1 974 ✅ 6 💤 0 ❌

Results for commit b35d739.

♻️ This comment has been updated with latest results.

@jaqx0r jaqx0r added this pull request to the merge queue Jul 17, 2024
Merged via the queue into main with commit abe92eb Jul 17, 2024
23 checks passed
@jaqx0r jaqx0r deleted the decode-fix branch July 17, 2024 13:12
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