mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-03-26 22:51:03 +03:00
patch: faster preload with BufReader
1. seek avoided with self maintained offset 2. BufReader to read faster Signed-off-by: ClSlaid <cailue@bupt.edu.cn>
This commit is contained in:
@@ -47,7 +47,7 @@ use super::LDAP_EPOCH_DELTA;
|
||||
const READ_RETRY: i32 = 3;
|
||||
|
||||
/// block size for fuse, align to our asynchronic request size over FileContentsRequest.
|
||||
const BLOCK_SIZE: u32 = 4 * 1024 * 1024;
|
||||
pub const BLOCK_SIZE: u32 = 4 * 1024 * 1024;
|
||||
|
||||
/// read only permission
|
||||
const PERM_READ: u16 = 0o444;
|
||||
|
||||
Reference in New Issue
Block a user