Skip to content

[io] Specialize read_exact and write_all for slices and Vec - #704

Merged
Dirbaio merged 1 commit into
rust-embedded:masterfrom
Conaclos:slice_specialized_impls
Sep 16, 2025
Merged

[io] Specialize read_exact and write_all for slices and Vec#704
Dirbaio merged 1 commit into
rust-embedded:masterfrom
Conaclos:slice_specialized_impls

Conversation

@Conaclos

@ConaclosConaclos commented Sep 16, 2025

Copy link
Copy Markdown
Contributor

This PR adds specialized implementations of read_exact and write_all for slices and Vec.
This avoids loops and an unreachable panic! in write_all.

@Conaclos
Conaclos requested a review from a team as a code ownerSeptember 16, 2025 08:01
@Conaclos
Conaclosforce-pushed the slice_specialized_impls branch from 48b35c5 to 43a1bbbCompareSeptember 16, 2025 08:03
@ConaclosConaclos changed the title [io] Add specialized read_exact and write_all for slices[io] Specialize read_exact and write_all for slices and VecSep 16, 2025
@Dirbaio
Dirbaio added this pull request to the merge queueSep 16, 2025
Merged via the queue into rust-embedded:master with commit ba02096Sep 16, 2025
7 checks passed
Sign up for freeto 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.

2 participants

@Conaclos@Dirbaio