Skip to content

Conversation

@cpubot
Copy link
Contributor

@cpubot cpubot commented Feb 8, 2026

The current SchemaRead impl for String calls fill_buf with the total length of the string.

Future Reader implementations on IO sources like #54 can provide implementations of copy_into_slice that can circumvent actual buffer fills by copying bytes directly into destinations when reads would exceed the capacity of the backing buffer. Updating String to use copy_into_slice will allow it to use these specializations in the future.

@cpubot cpubot requested a review from kskalski February 8, 2026 23:09
@cpubot cpubot merged commit 8187f7e into master Feb 9, 2026
3 checks passed
@cpubot cpubot deleted the string-copy-into-slice branch February 9, 2026 00:36
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.

2 participants