-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
perf(profiling): drop unnecessary mapping ID #925
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #925 +/- ##
==========================================
+ Coverage 72.69% 72.76% +0.07%
==========================================
Files 334 334
Lines 50498 50941 +443
==========================================
+ Hits 36709 37067 +358
- Misses 13789 13874 +85
🚀 New features to boost your workflow:
|
BenchmarksComparisonBenchmark execution time: 2025-03-15 01:29:23 Comparing candidate commit 6147a8f in PR branch Found 0 performance improvements and 5 performance regressions! Performance is the same for 47 metrics, 2 unstable metrics. scenario:credit_card/is_card_number/x371413321323331
scenario:credit_card/is_card_number_no_luhn/x371413321323331
scenario:sql/obfuscate_sql_string
CandidateCandidate benchmark detailsGroup 1
Group 2
Group 3
Group 4
Group 5
Group 6
Group 7
Group 8
Group 9
Group 10
Group 11
Group 12
Group 13
BaselineOmitted due to size. |
This allows Location.mapping_id=0 in the final pprof, and since that's the default for the field, it can be omitted altogether from the profile. This shrinks every location entry on-wire by a few bytes before compression.
Artifact Size Benchmark Reportaarch64-alpine-linux-musl
aarch64-apple-darwin
aarch64-unknown-linux-gnu
i686-alpine-linux-musl
i686-unknown-linux-gnu
libdatadog-x64-windows
libdatadog-x86-windows
x86_64-alpine-linux-musl
x86_64-apple-darwin
x86_64-unknown-linux-gnu
|
What does this PR do?
This allows Location.mapping_id=0 in the final pprof, and since that's the default for the field, it can be omitted altogether from the profile.
Motivation
This shrinks every location entry on-wire by a few bytes before compression if the mapping is unused. PHP, Ruby, and Python do not use mappings, so they benefit from this.
Additional Notes
I have not yet validated that the plumbing is all correct, and that the mapping id is completely omitted as desired.
How to test the change?
Describe here in detail how the change can be validated.