Repository navigation
Conversation
Codeowners resolved asResolved from the full PR diff against |
Dependency direction analysis
|
BenchmarksBenchmark execution time: 2026-11-23 18:24:15 Comparing candidate commit 2fe7ace in PR branch Found 0 performance improvements and 0 performance regressions! Performance is the same for 635 metrics, 10 unstable metrics, 1 flaky benchmarks without significant changes.
|
❌ ErrorsYour PR has failed checks. Please review the issues below and take necessary action before merging. 🚦 1 Pipeline job failed
ℹ️ InfoNo other issues found (see more)🧪 All tests passed Useful? React with 👍 / 👎 This comment will be updated automatically if new data arrives.🔗 Commit SHA: 2fe7ace | Docs | View more details | Give us feedback! |
Move the FNV-1 64-bit hash used for pathway, schema and process-tag hashes to the Rust extension. Output is identical to the previous pure-Python implementation.
Encode and decode the base64 pathway context in the Rust extension. Inputs the native path does not handle (lenient base64, malformed contexts, out-of-range timestamps) fall back to the Python implementation, so output and error handling are unchanged.
a16e8de to
1a4263c
Compare
922d093 to
2fe7ace
Compare
Description
Reduces the CPU cost of Data Streams Monitoring on the produce/consume path with two changes:
perf(datastreams): cache pathway hash computation+ test and cache-size follow-ups): memoizes the pathway hash with a bounded LRU cache (256 entries); a steady-state pathway otherwise recomputes the same hash for every message.perf(datastreams): compute fnv1_64 natively,perf(datastreams): encode and decode pathway context natively): moves FNV-1 64 hashing and base64 pathway context encode/decode to the Rust extension. Inputs the native path does not handle (lenient base64, malformed contexts, out-of-range timestamps) fall back to the Python implementation, so output and error handling are unchanged.Benchmark
Speedlab CI, each change measured alone on
main(8918a5a). DSM share = (apm+dsm − apm-only) / (apm-only − baseline).main)Combined numbers to follow.
Testing
tests/datastreams: native encode/decode is checked byte for byte against the pure-Python reference on random inputs, plus fallback outside the native range, malformed contexts, and hash cache hit/miss behavior.tests/contrib/kafka: full suite passes locally.src/native/datastreams.rs.Risks
Low. The hash cache is bounded (256 entries). The native paths fall back to Python for any input they do not handle.
Additional Notes
None.