Skip to content

Allow io::reader to use preallocated buffers, plus other misc changes #2983

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

Closed
wants to merge 6 commits into from

Conversation

erickt
Copy link
Contributor

@erickt erickt commented Jul 21, 2012

This theoretically should speed up io::reader hotpaths by eliminating the need for a malloc per loop. Plus it comes with a memcpy/memmove that works over slices.

@graydon
Copy link
Contributor

graydon commented Jul 23, 2012

Looks good to me, thanks! Will merge shortly.

@graydon
Copy link
Contributor

graydon commented Jul 24, 2012

Integrated, thanks.

@graydon graydon closed this Jul 24, 2012
RalfJung pushed a commit to RalfJung/rust that referenced this pull request Jul 23, 2023
celinval added a commit to celinval/rust-dev that referenced this pull request Jun 4, 2024
Related PRs so far:

- rust-lang#119869
- rust-lang#120080
- rust-lang#120128
- rust-lang#119369
- rust-lang#116672

By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache 2.0 and MIT licenses.

---------

Signed-off-by: Felipe R. Monteiro <[email protected]>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: tautschnig <[email protected]>
Co-authored-by: Qinheping Hu <[email protected]>
Co-authored-by: Michael Tautschnig <[email protected]>
Co-authored-by: Felipe R. Monteiro <[email protected]>
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