Skip to content
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

refactor(profiling): shrink env/service/version and simplify #2640

Merged
merged 1 commit into from
Apr 24, 2024

Conversation

morrisonlevi
Copy link
Collaborator

@morrisonlevi morrisonlevi commented Apr 23, 2024

Description

This changes the fields env, service, and version in RequestLocals from Option<Cow<'static, str>> to Option<String>. In practice they were rarely a borrowed string. Doing this shrinks the size of the request locals and is simpler to work with.

Reviewer checklist

  • Test coverage seems ok.
  • Appropriate labels assigned.

They were previously `Cow<'static, str>` and are now `String`. In
practice they were rarely a borrowed string, and doing this shrinks
the size of the request locals and is simpler to work with.
@morrisonlevi morrisonlevi added the profiling Relates to the Continuous Profiler label Apr 23, 2024
@morrisonlevi morrisonlevi requested a review from a team as a code owner April 23, 2024 20:24
@pr-commenter
Copy link

pr-commenter bot commented Apr 23, 2024

Benchmarks

Benchmark execution time: 2024-04-23 20:31:53

Comparing candidate commit 64ed2e7 in PR branch levi/request-locals with baseline commit 6d15aec in branch levi/stack_walking.

Found 0 performance improvements and 0 performance regressions! Performance is the same for 26 metrics, 10 unstable metrics.

@codecov-commenter
Copy link

codecov-commenter commented Apr 23, 2024

Codecov Report

Merging #2640 (64ed2e7) into levi/stack_walking (6d15aec) will decrease coverage by 0.41%.
Report is 2 commits behind head on levi/stack_walking.
The diff coverage is n/a.

Additional details and impacted files

Impacted file tree graph

@@                   Coverage Diff                    @@
##             levi/stack_walking    #2640      +/-   ##
========================================================
- Coverage                 77.76%   77.35%   -0.41%     
  Complexity                 2198     2198              
========================================================
  Files                       225      199      -26     
  Lines                     25959    21959    -4000     
  Branches                    986        0     -986     
========================================================
- Hits                      20186    16986    -3200     
+ Misses                     5247     4973     -274     
+ Partials                    526        0     -526     
Flag Coverage Δ
appsec-extension ?
tracer-extension 78.49% <ø> (ø)
tracer-php 75.73% <ø> (-4.84%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

see 30 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6d15aec...64ed2e7. Read the comment docs.

Base automatically changed from levi/stack_walking to master April 24, 2024 14:48
@morrisonlevi morrisonlevi merged commit 872565b into master Apr 24, 2024
581 of 588 checks passed
@morrisonlevi morrisonlevi deleted the levi/request-locals branch April 24, 2024 14:48
@bwoebi bwoebi added this to the 1.0.0 milestone May 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
profiling Relates to the Continuous Profiler
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants