Skip to content

Commit

Permalink
perf(interpreter):Improve ATC interpreter's cache efficiency
Browse files Browse the repository at this point in the history
KAG-5152
  • Loading branch information
xianghai2 committed Sep 25, 2024
1 parent af78a65 commit 5299833
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/cir.rs
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,7 @@ impl FieldCounter for CirProgram {
mod tests {
use super::*;
use crate::ast::Expression;
use crate::ast::Value;
use crate::context::Match;
use crate::interpreter::Execute;
use crate::schema::Schema;
Expand Down Expand Up @@ -348,6 +349,7 @@ mod tests {
let mut context = crate::context::Context::new(&schema);
context.add_value("http.path", crate::ast::Value::String("hello".to_string()));
context.add_value("http.version", crate::ast::Value::String("1.1".to_string()));
context.add_value("a", Value::Int(3 as i64));

for source in sources {
let ast = crate::parser::parse(source)
Expand Down

0 comments on commit 5299833

Please sign in to comment.