Skip to content

Conversation

@mattsu2020
Copy link
Contributor

Modified the test for bounded-memory.sh in GNU coreutils to pass.

related
#9127

Introduce streaming input processing for encode/decode operations, using BufReader for buffered reads. This avoids loading entire input into memory, preventing OOM for large files. Base58 retains buffered behavior due to its requirement to process input as one big integer, preserving historical compatibility. Remove obsolete ReadSeek trait and buffer-reading logic.
…fast encode/decode

Improve error handling for I/O read operations by wrapping errors with USimpleError for better user feedback. Refactor the invalid input logic in fast_decode to ensure correct chunk flushing before returning errors, supporting both partial and non-partial decode modes.
- Updated the spell-checker ignore comment in base_common.rs to include 'behaviour'
- Fixes false positive spell-checker warning, likely due to British English spelling being used in code or comments
@mattsu2020 mattsu2020 marked this pull request as draft December 1, 2025 11:37
@codspeed-hq
Copy link

codspeed-hq bot commented Dec 1, 2025

CodSpeed Performance Report

Merging #9536 will degrade performances by 3.48%

Comparing mattsu2020:basenc_bounded-memory (d4111f8) with main (ee39b35)

Summary

❌ 2 regressions
✅ 124 untouched
⏩ 6 skipped1

⚠️ Please fix the performance issues or acknowledge them on CodSpeed.

Benchmarks breakdown

Benchmark BASE HEAD Change
b64_decode_ignore_garbage_synthetic 149.4 µs 154.7 µs -3.39%
b64_decode_synthetic 149.1 µs 154.5 µs -3.48%

Footnotes

  1. 6 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports.

@mattsu2020 mattsu2020 marked this pull request as ready for review December 1, 2025 11:50
@github-actions
Copy link

github-actions bot commented Dec 1, 2025

GNU testsuite comparison:

Congrats! The gnu test tests/basenc/bounded-memory is no longer failing!

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