Skip to content
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

Specialize io::copy for BufRead sources #71091

Closed
wants to merge 4 commits into from
Closed

Commits on Apr 13, 2020

  1. Specialize io::copy for BufRead sources

    Allocating an additional buffer and then copying through it is completely unnecessary if the source we're copying from is BufRead (i.e. already maintains a buffer internally). Using specialization, we can detect this and handle it accordingly.
    
    Note that this also makes it possible to specify a custom buffer size for copy operations by wrapping the source in a BufReader::with_capacity.
    main-- authored Apr 13, 2020
    Configuration menu
    Copy the full SHA
    a69fba8 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    84640a5 View commit details
    Browse the repository at this point in the history

Commits on Apr 14, 2020

  1. Sort imports

    main-- authored Apr 14, 2020
    Configuration menu
    Copy the full SHA
    4b13cfd View commit details
    Browse the repository at this point in the history
  2. are you kidding me

    main-- authored Apr 14, 2020
    Configuration menu
    Copy the full SHA
    b904703 View commit details
    Browse the repository at this point in the history