Summary
Uses .to_lowercase() (allocating a String) for case-insensitive matching on every response. Should use eq_ignore_ascii_case instead.
Refs
crates/common/src/streaming_processor.rs lines 46-53
Recommendation
Replace .to_lowercase().as_str() match with eq_ignore_ascii_case comparisons.
Context
Production readiness audit — see #396
Summary
Uses
.to_lowercase()(allocating a String) for case-insensitive matching on every response. Should useeq_ignore_ascii_caseinstead.Refs
crates/common/src/streaming_processor.rslines 46-53Recommendation
Replace
.to_lowercase().as_str()match witheq_ignore_ascii_casecomparisons.Context
Production readiness audit — see #396