

Limit read size in `File::read_to_end` loop by ChrisDenton · Pull Request #11065...
source link: https://github.com/rust-lang/rust/pull/110655
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Conversation
Contributor
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.
added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-libs Relevant to the library team, which will review and decide on the PR/issue.
labels
Collaborator
Hey! It looks like you've submitted a new PR for the library teams! If this PR contains changes to any Examples of
|
Recommend
-
78
Keep your JavaScript dependencies and polyfills in check and find out what exactly makes your code bloat with Size Limit. To demonstrate, we will code a simple library toge...
-
8
Repo link: https://github.com/wemake-services/docker-image-size-lim...
-
10
Conversation Copy link Contributor ...
-
7
Copy link Contributor ChrisDenton...
-
7
Resolve `process::Command` program without using the current directory by ChrisDenton · Pull Request #87704 · rust-lang/rust · GitHub Copy link Contributor...
-
3
Copy link Contributor ChrisDenton
-
11
How to Fix the File Size Exceeds Limit Error 0x800700DF in Windows 10 By Matthew Wallaker Published 13 hours ago If...
-
10
Copy link Contributor
-
5
Conversation Contributor...
-
16
Conversation Contributor...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK