Description
is_low_signal_relation() in crates/zeph-memory/src/semantic/graph.rs calls .to_lowercase() on relation strings, allocating ~30 short Strings per extraction pass. All entries in the predicate list are ASCII.
Location
crates/zeph-memory/src/semantic/graph.rs — is_low_signal_relation function
Fix
Replace .to_lowercase() == "..." comparisons with eq_ignore_ascii_case("..."). Zero allocation, same semantics for ASCII inputs.
Environment
Description
is_low_signal_relation()incrates/zeph-memory/src/semantic/graph.rscalls.to_lowercase()on relation strings, allocating ~30 short Strings per extraction pass. All entries in the predicate list are ASCII.Location
crates/zeph-memory/src/semantic/graph.rs—is_low_signal_relationfunctionFix
Replace
.to_lowercase() == "..."comparisons witheq_ignore_ascii_case("..."). Zero allocation, same semantics for ASCII inputs.Environment