Repository navigation
Conversation
There was a problem hiding this comment.
AI review by Claude - workflow run
Patch is correct, with 0 blocking findings. The single-pass split keeps the earlier error kinds and the per-field UTF-8 fallbacks. The fast path's integer-then-divide-by-10 conversion gives the same f64 as str::parse for every input it accepts.
There was a problem hiding this comment.
More details
The numeric fast path preserves standard float rounding within its accepted bounds, while malformed UTF-8 continues through field-specific validation rules.
🤖 Bits Code Review · Commit 2a1e22b
Binary Size Analysis (Agent Data Plane)Baseline: 625e229 · Comparison: 8af12a9 · diff ✅ Binary size difference within thresholdChanges by Module
Detailed Symbol Changes |
Regression Detector (Agent Data Plane)Run ID: Optimization Goals: ✅ No significant changes detectedFine details of change detection per experiment (5)Experiments configured
Bounds Checks: ✅ Passed (5)
ExplanationA change is flagged as a regression when |Δ mean %| > 5.00% in the regressing direction for its optimization goal AND SMP marks the experiment as a regression ( |
2a1e22b to
9a3f674
Compare
There was a problem hiding this comment.
More details
The completed static review found no reportable regression in numeric conversion, counter sampling, or field-specific UTF-8 handling. Human PR discussion introduced no unresolved correctness concerns.
🤖 Bits Code Review · Commit 9a3f674
9a3f674 to
b1bf5da
Compare
There was a problem hiding this comment.
More details
The scalar fast path bounds mantissas to exact integer-to-f64 conversion and preserves the general parser for other numeric forms. The completed source review identified no reportable correctness issue.
🤖 Bits Code Review · Commit b1bf5da
b1bf5da to
805b04f
Compare
There was a problem hiding this comment.
More details
Runtime behavior and the reported CPU reduction remain unverified because validation was limited to static code inspection.
🤖 Bits Code Review · Commit 805b04f
805b04f to
e037221
Compare
There was a problem hiding this comment.
More details
The static review identified no reportable defect in short-scalar parsing or field-specific UTF-8 handling. Runtime equivalence remains unverified because tests were not run and production telemetry was excluded.
🤖 Bits Code Review · Commit e037221
e037221 to
fb01960
Compare
There was a problem hiding this comment.
More details
No reportable defect was identified in the numeric fast paths or field-specific UTF-8 handling. This conclusion is based on static analysis; runtime behavior was not exercised.
🤖 Bits Code Review · Commit fb01960
a0123da to
3d65e7b
Compare
There was a problem hiding this comment.
More details
Numeric forms outside the short scalar fast path retain the general parser, and malformed UTF-8 retains field-specific fallback handling. Focused execution was blocked by an uncached Git dependency.
🤖 Bits Code Review · Commit 3d65e7b
3d65e7b to
c4f7013
Compare
There was a problem hiding this comment.
More details
The short-number path preserves signed zero and falls back for other numeric forms; UTF-8 handling retains field-specific validation. Runtime verification was blocked by an unavailable Git dependency.
🤖 Bits Code Review · Commit c4f7013
c4f7013 to
060aea8
Compare
There was a problem hiding this comment.
More details
The static review found no actionable regressions in field-specific UTF-8 handling or scalar parsing. Runtime confirmation remains limited because an unavailable libdatadog Git dependency blocked the targeted tests.
🤖 Bits Code Review · Commit 060aea8
060aea8 to
c751895
Compare
There was a problem hiding this comment.
More details
The static reviewer identified no actionable compatibility issue in numeric parsing or field-specific UTF-8 handling. The reported CPU improvements were not independently validated.
🤖 Bits Code Review · Commit c751895
c751895 to
c602162
Compare
There was a problem hiding this comment.
More details
Unsupported numeric formats retain the general parser, while malformed UTF-8 retains field-specific handling. Runtime behavior remains unverified because Rust tests were not run.
🤖 Bits Code Review · Commit c602162
c602162 to
9076393
Compare
There was a problem hiding this comment.
More details
The completed static review found that the scalar fast paths preserve field validation, counter sampling, and numeric parsing behavior. Human PR discussion supplied no reason to change that conclusion.
🤖 Bits Code Review · Commit 9076393
9076393 to
cf631dd
Compare
There was a problem hiding this comment.
More details
The static review identified no reportable defect in float rounding, singleton construction, or field-specific UTF-8 handling. Runtime equivalence remains unverified because tests were not executed.
🤖 Bits Code Review · Commit cf631dd
cf631dd to
a51beb3
Compare
There was a problem hiding this comment.
More details
Static review identified no actionable parser defects. Runtime equivalence of the numeric fast path and UTF-8 handling remains unverified because an uncached pinned libdatadog dependency blocked test execution.
🤖 Bits Code Review · Commit a51beb3
a51beb3 to
d05414e
Compare
There was a problem hiding this comment.
More details
The numeric fast path retains the general parser fallback, and UTF-8 validation preserves field-specific handling. Static review produced no actionable findings; runtime behavior was not tested.
🤖 Bits Code Review · Commit d05414e
d05414e to
a438a76
Compare
There was a problem hiding this comment.
More details
The UTF-8 fast path preserves tolerant handling of malformed optional fields, and unsupported numeric forms retain the general parser. Focused execution checks were blocked by the missing libdd-trace-obfuscation dependency.
🤖 Bits Code Review · Commit a438a76
…eton scalars ## Summary The DogStatsD codec scans each metric line several times. It validates UTF-8, splits fields on separators and then parses each value through the general float parser. Common counter and gauge lines carry one short integer or decimal, yet they still take the general path. This change validates UTF-8 and scans separators in one pass for common inputs. It builds singleton scalar values directly. A dedicated parser handles short integers and one-digit decimals and converts them to `f64` exactly. Other forms keep the existing field validation and numeric parser. Stripped `optimized-release` Tier 1 runs show cgroup CPU falling 2.31% on SMP-500 and 2.08% on 1M RUM. ## Change Type - [ ] Bug fix - [ ] New feature - [ ] Non-functional - [x] Performance ## How did you test this PR? - `cargo check --locked --workspace --tests` - `cargo test --locked -p saluki-io --lib metric_utf8_validation_preserves_field_specific_rules` - Tier 1 runs use stripped `optimized-release` builds against base `18f587f5f6` in cgroup v2, in default unbounded mode. - SMP-500 is the Saluki Single Machine Performance 3,000-context UDS case at 500 MiB/s. - 1M RUM holds 1,000,000 gauges that each carry one unique 51 B UUID tag and 4 to 10 shared tags. ## References - Requires: none. - Required by: none. - Release note: `releasenotes/notes/dogstatsd-single-pass-codec-c7442d1f971c0119.yaml` ### Series overview - Context & Tag Density: pack contexts into one allocation and drop unused cache overhead. - Dense Aggregation: replace 177 B buckets with per-kind typed pages. - Resumable Flush: shrink metric buffers and interleave bounded flush chunks. - Idle Pipeline Bypass: skip inactive transforms and borrow client telemetry. - **`300m` CPU:** cut encoder, codec and worker-pool hot-path cost. - PR TBD: reuse V3 dictionary arenas and frame payloads in one pass - PR TBD: map packed tag symbols directly to V3 payload IDs - PR TBD: reuse the `zstd` context and gate per-column recompression - **Current:** parse DogStatsD metrics in one pass and fast-path singleton scalars - PR TBD: classify and deduplicate metric tags on the stack - PR TBD: size the dedicated topology worker pool to available CPUs - Memory Admission: enforce opt-in configured memory limits with idle reclaim and counted drops.
a438a76 to
8af12a9
Compare
There was a problem hiding this comment.
More details
Static analysis found the fast paths preserve field-specific UTF-8 handling, numeric parsing, sampling, and timestamp behavior. Runtime correctness remains unverified because Rust tests were not run.
🤖 Bits Code Review · Commit 8af12a9
Summary
The DogStatsD codec scans each metric line several times. It validates UTF-8, splits fields on separators and then parses each value through the general float parser. Common counter and gauge lines carry one short integer or decimal, yet they still take the general path.
This change validates UTF-8 and scans separators in one pass for common inputs. It builds singleton scalar values directly. A dedicated parser handles short integers and one-digit decimals and converts them to
f64exactly. Other forms keep the existing field validation and numeric parser.Stripped
optimized-releaseTier 1 runs show cgroup CPU falling 2.31% on SMP-500 and 2.08% on 1M RUM.Change Type
How did you test this PR?
cargo check --locked --workspace --testscargo test --locked -p saluki-io --lib metric_utf8_validation_preserves_field_specific_rulesoptimized-releasebuilds against base18f587f5f6in cgroup v2, in default unbounded mode.References
blt/1m-15-metrics-zstd-reuse)releasenotes/notes/dogstatsd-single-pass-codec-c7442d1f971c0119.yamlSeries overview
300mCPU: cut encoder, codec and worker-pool hot-path cost.