vector sizes

streaming wip
This commit is contained in:
euzu
2025-01-09 13:31:05 +01:00
parent ca9a8fea79
commit 1718e6d52c
12 changed files with 29 additions and 28 deletions
+1 -1
View File
@@ -64,7 +64,7 @@ pub fn json_iter_array<T: DeserializeOwned, R: Read>(
}
pub fn json_filter_file(file_path: &Path, filter: &HashMap<&str, &str>) -> Vec<serde_json::Value> {
let mut filtered: Vec<serde_json::Value> = Vec::new();
let mut filtered: Vec<serde_json::Value> = Vec::with_capacity(1024);
if !file_path.exists() {
return filtered; // Return early if the file does not exist
}