perf: optimize DNS query hot path #15
Reference in New Issue
Block a user
Delete Branch "perf/hot-path-optimizations"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
DnsPacket::write()— eliminates 3 Vec allocations per response serializationString::with_capacity(64)) in DNS record parsing — avoids reallocation for typical domain namescargo bench) with hot_path and throughput suites + bench READMEBenchmark results (before → after)
Test plan
cargo fmt --checkcleancargo clippy -- -D warningsclean🤖 Generated with Claude Code