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
@@ -949,7 +949,7 @@ impl Config {
for source in &mut self.sources {
for target in &mut source.targets {
if let Some(mapping_ids) = &target.mapping {
let mut target_mappings = Vec::new();
let mut target_mappings = Vec::with_capacity(128);
for mapping_id in mapping_ids {
let mapping = mappings_cfg.get_mapping(mapping_id);
if let Some(mappings) = mapping {
+2 -1
View File
@@ -308,11 +308,12 @@ impl MappingValueProcessor<'_> {
.map(|caps| caps.as_str())
.collect::<Vec<&str>>();
let mut captured_tag_values: Vec<&str> = Vec::with_capacity(128);
for tag_capture in tag_captures {
for mapping_tag in &self.mapper.t_tags {
if mapping_tag.name.eq(tag_capture) {
// we have the right tag, now get all captured values
let mut captured_tag_values: Vec<&str> = Vec::new();
captured_tag_values.clear();
for cap in &mapping_tag.captures {
if let Some(cap_value) = captures.get(cap.as_str()) {
captured_tag_values.push(cap_value);