changed hashmap library to tuneup #368 (#369)

* added color code emit_csv test

* replaced HashMap and HashSet to hashbrown #368

* removed debug output in test #368

* fixed colored test
This commit is contained in:
DustInDark
2022-02-09 01:59:39 +09:00
committed by GitHub
parent 84de8d01af
commit df30adfdef
7 changed files with 10 additions and 8 deletions
+1 -1
View File
@@ -13,8 +13,8 @@ use crate::detections::utils::get_serde_number_to_string;
use crate::filter;
use crate::yaml::ParseYaml;
use hashbrown;
use hashbrown::HashMap;
use serde_json::Value;
use std::collections::HashMap;
use std::io::BufWriter;
use std::sync::Arc;
use tokio::{runtime::Runtime, spawn, task::JoinHandle};
+2 -1
View File
@@ -5,7 +5,8 @@ use self::selectionnodes::{
AndSelectionNode, NotSelectionNode, OrSelectionNode, RefSelectionNode, SelectionNode,
};
use super::selectionnodes;
use std::{collections::HashMap, sync::Arc};
use hashbrown::HashMap;
use std::sync::Arc;
lazy_static! {
pub static ref CONDITION_REGEXMAP: Vec<Regex> = vec![
+2 -1
View File
@@ -3,7 +3,8 @@ use crate::detections::print::Message;
use chrono::{DateTime, Utc};
use std::{collections::HashMap, fmt::Debug, sync::Arc, vec};
use hashbrown::HashMap;
use std::{fmt::Debug, sync::Arc, vec};
use yaml_rust::Yaml;