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")
|
let max_buffer_size = final_options.get("max_buffer_size")
|
||||||
.and_then(|v| v.as_u64())
|
.and_then(|v| v.as_u64())
|
||||||
.unwrap_or(PIPESIZE as u64 / 2) as usize;
|
.unwrap_or(PIPESIZE as u64) as usize;
|
||||||
|
|
||||||
BinaryMetaPlugin {
|
BinaryMetaPlugin {
|
||||||
meta_name: "binary".to_string(),
|
meta_name: "binary".to_string(),
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ impl MagicFileMetaPlugin {
|
|||||||
) -> MagicFileMetaPlugin {
|
) -> MagicFileMetaPlugin {
|
||||||
// Start with default options
|
// Start with default options
|
||||||
let mut final_options = std::collections::HashMap::new();
|
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 {
|
if let Some(opts) = options {
|
||||||
for (key, value) in opts {
|
for (key, value) in opts {
|
||||||
final_options.insert(key, value);
|
final_options.insert(key, value);
|
||||||
@@ -46,7 +46,7 @@ impl MagicFileMetaPlugin {
|
|||||||
|
|
||||||
let max_buffer_size = final_options.get("max_buffer_size")
|
let max_buffer_size = final_options.get("max_buffer_size")
|
||||||
.and_then(|v| v.as_u64())
|
.and_then(|v| v.as_u64())
|
||||||
.unwrap_or((PIPESIZE / 2) as u64) as usize;
|
.unwrap_or(PIPESIZE as u64) as usize;
|
||||||
|
|
||||||
MagicFileMetaPlugin {
|
MagicFileMetaPlugin {
|
||||||
buffer: Vec::new(),
|
buffer: Vec::new(),
|
||||||
|
|||||||
Reference in New Issue
Block a user