mirror of
https://github.com/euzu/tuliprox.git
synced 2026-10-18 05:42:16 +02:00
vector sizes
streaming wip
This commit is contained in:
+1
-1
@@ -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 {
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user