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:
Andrew Phillips
2025-08-25 21:27:39 -03:00
parent 6719dff149
commit 33b5cc2e92
2 changed files with 3 additions and 3 deletions

View File

@@ -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(),

View File

@@ -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(),