Skip to content

Commit

Permalink
Use larger buffer for read_to_end
Browse files Browse the repository at this point in the history
  • Loading branch information
kaimast committed Jul 22, 2024
1 parent 35be54f commit 660c7be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fs/file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ impl File {
mut pos: u64,
mut result: Vec<u8>,
) -> crate::BufResult<(), Vec<u8>> {
let mut buffer = vec![0u8; 1024];
let mut buffer = vec![0u8; 4096];

loop {
let (res, buf) = self.read_at(buffer, pos).await;
Expand Down

0 comments on commit 660c7be

Please sign in to comment.