Creating HashingUtils as alternative to Objects.hash by dougqh · Pull Request #10628 · DataDog/dd-trace-java

@dougqh

Adding HashingUtils which is a replacement for the hashing routines of java.util.Objects.

HashingUtils is specifically designed to avoid var-args allocation which can lead to lots of allocation if hashCode is hot.

To demonstrate the potential impact see HashingBenchmark

@dougqh

@dougqh dougqh changed the title Creating HashingUtils Creating HashingUtils as alternative to Objects.hash

Feb 18, 2026

@dougqh

amarziali

amarziali

@dougqh dougqh deleted the dougqh/objects-hash-replacement branch

February 19, 2026 13:01