refactor(base32): reorder std imports in base_common.rs for consistency
Moved the `slice` import from after `collections::VecDeque` to after `num::NonZeroUsize` to better align with the module's import grouping style.
5db1fe0
17 days ago
by mattsu2020
+5.16%
Merge branch 'main' into base32_performance_check
21d325e
16 days ago
by mattsu2020
-2.86%
refactor(base32): remove unsafe buffer handling in encode/decode
Replace unsafe spare_capacity_mut and from_raw_parts_mut usage with safe Vec initialization and direct read calls in fast_encode and fast_decode. This eliminates potential safety risks while preserving buffer functionality.
dbeacf7
15 days ago
by mattsu2020
+3.15%
perf(base32): optimize input handling by switching to BufRead for efficient buffering
Switch from unbuffered Read to BufRead in get_input, handle_input, and fast_encode_stream functions. This reduces syscalls by leveraging buffered reads, improving performance for base32 encoding/decoding operations. Refactor fast_encode_stream to use fill_buf() and manage leftover buffers more efficiently.