feat: increase buffer size from PIPESIZE/2 to PIPESIZE
Co-authored-by: aider (openai/andrew/openrouter/deepseek/deepseek-chat-v3.1) <aider@aider.chat>
This commit is contained in:
@@ -44,7 +44,7 @@ impl BinaryMetaPlugin {
|
||||
|
||||
let max_buffer_size = final_options.get("max_buffer_size")
|
||||
.and_then(|v| v.as_u64())
|
||||
.unwrap_or(PIPESIZE as u64 / 2) as usize;
|
||||
.unwrap_or(PIPESIZE as u64) as usize;
|
||||
|
||||
BinaryMetaPlugin {
|
||||
meta_name: "binary".to_string(),
|
||||
|
||||
@@ -25,7 +25,7 @@ impl MagicFileMetaPlugin {
|
||||
) -> MagicFileMetaPlugin {
|
||||
// Start with default options
|
||||
let mut final_options = std::collections::HashMap::new();
|
||||
final_options.insert("max_buffer_size".to_string(), serde_yaml::Value::Number((PIPESIZE / 2).into()));
|
||||
final_options.insert("max_buffer_size".to_string(), serde_yaml::Value::Number(PIPESIZE.into()));
|
||||
if let Some(opts) = options {
|
||||
for (key, value) in opts {
|
||||
final_options.insert(key, value);
|
||||
@@ -46,7 +46,7 @@ impl MagicFileMetaPlugin {
|
||||
|
||||
let max_buffer_size = final_options.get("max_buffer_size")
|
||||
.and_then(|v| v.as_u64())
|
||||
.unwrap_or((PIPESIZE / 2) as u64) as usize;
|
||||
.unwrap_or(PIPESIZE as u64) as usize;
|
||||
|
||||
MagicFileMetaPlugin {
|
||||
buffer: Vec::new(),
|
||||
|
||||
Reference in New Issue
Block a user