SIGN IN SIGN UP

perf: Avoid boxing in doubleToBigDecimal timestamp serialization (#5551)

* perf: Avoid boxing in doubleToBigDecimal timestamp serialization

Change DateUtils.doubleToBigDecimal to take a primitive double instead of a
boxed Double, and route the four duplicated private copies (ProfileChunk,
ProfileMeasurementValue, SentrySample, SentrySpan) through it. Callers that
hold a primitive double timestamp no longer autobox on every serialization,
and the duplicated helpers are consolidated into one. Behavior is unchanged.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* changelog

---------

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
N
Nelson Osacky committed
ba010111864967003758a5e4d750dfe04f995c18
Parent: e52b4e4
Committed by GitHub <noreply@github.com> on 6/17/2026, 11:17:06 AM