-
Notifications
You must be signed in to change notification settings - Fork 515
perf: Suppress telemetry using ContextFlags(usize) instead of bool #2861
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
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2861 +/- ##
=====================================
Coverage 81.3% 81.3%
=====================================
Files 126 126
Lines 24156 24162 +6
=====================================
+ Hits 19650 19656 +6
Misses 4506 4506 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
d79a782
to
dc038f9
Compare
👷 build bot output from this run:
|
dc038f9
to
06eb4a1
Compare
These numbers are not relevant since the code has changed completely. |
e3aca49
to
ad3ad40
Compare
This is still a draft until #2870 has been merged and all benchmarks are run properly. |
baad2fe
to
01874de
Compare
New performance numbers from new approach in this run:
|
01874de
to
3416528
Compare
@bantonsson can you run the bench in your machine and see if you are also observing the same? I am seeing regression in my laptop. There are improvements to attach ones anyway, so we should still proceed with this PR, but I am curious how much we can trust the bench results from the CI machines! telemetry_suppression/enter_telemetry_suppressed_scope |
@cijothomas These are the numbers from my
And these are the numbers from my
|
The code seems to be highly sensitive to alignment, so use a bitfield instead of a boolean.
fe37e71
to
2f628ee
Compare
Changes
This PR aligns the
Context
struct and changes abool
into a flag field. It tries to mitigate the performance impact of #2821 on context attach/detach operations.Merge requirement checklist
CHANGELOG.md
files updated for non-trivial, user-facing changes