Repository navigation
Conversation
This comment has been minimized.
This comment has been minimized.
Contributor
🟢 Java Benchmark SLOs — All performance SLOs passed
PR vs. master results
Commit: Load and DaCapo benchmarks can be triggered manually in the GitLab pipeline. Results will appear in the Benchmarking Platform UI after completion. |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What Does This Do
Reduces per-message allocation in Data Streams Monitoring (DSM) hot paths:
pathway.hashtag string (newPathwayHashStrings) instead of callingLong.toUnsignedStringon every message.DataStreamsPropagator/DefaultDataStreamsMonitoringinstead of allocating a new one per message.Tag values and payloads are identical to before. Adds
PathwayHashStringsTest.Motivation
Part of work to lower DSM overhead so it can be enabled by default. These two sites allocate on every produced/consumed message.
Additional Notes
Performance (indicative only): this commit was measured locally as part of a 3-commit stack that also included other allocation reductions not in this PR. On a noisy laptop, DSM overhead relative to APM's own overhead went from 52.9% to 11.7% for the whole stack. That number is not attributable to this commit alone. Per-commit evidence is the removal of the allocation sites above. Final numbers will come from the benchmarking platform.
Tests:
./gradlew :dd-trace-core:test --tests '*datastreams*'passes locally; Spotless applied.Contributor Checklist
type:and (comp:orinst:) labels in addition to any other useful labelsJira ticket: [PROJ-IDENT]