Auto merge of #110655 - ChrisDenton:read-to-end, r=joshtriplett
Limit read size in `File::read_to_end` loop Fixes #110650. Windows file reads have perf overhead that's proportional to the buffer size. When we have a reasonable expectation that we know the file size, we can set a reasonable upper bound for the size of the buffer in one read call.
This commit is contained in:
commit
9de7d9169c
4 changed files with 43 additions and 24 deletions
|
@ -288,6 +288,7 @@
|
|||
#![feature(float_next_up_down)]
|
||||
#![feature(hasher_prefixfree_extras)]
|
||||
#![feature(hashmap_internals)]
|
||||
#![feature(int_roundings)]
|
||||
#![feature(ip)]
|
||||
#![feature(ip_in_core)]
|
||||
#![feature(maybe_uninit_slice)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue