-
Notifications
You must be signed in to change notification settings - Fork 163
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: Use string_view in event filters and more #1797
refactor: Use string_view in event filters and more #1797
Conversation
8ceee69
to
f9393dd
Compare
Since we are a bit late for the 0.16.0 tag, i propose: |
f9393dd
to
b9d6972
Compare
/assign @FedeDP |
b9d6972
to
006e6f6
Compare
userspace/libsinsp/base64.h
Outdated
@@ -19,6 +19,7 @@ | |||
|
|||
#pragma once | |||
|
|||
#include <cstdint> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change was already merged and can be removed :) (#1799)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've rebased everything.
Signed-off-by: Federico Aponte <[email protected]>
Signed-off-by: Federico Aponte <[email protected]>
006e6f6
to
8d0c4b5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
/approve
LGTM label has been added. Git tree hash: 225128f4dc00cf1a63bb56b4536a9d3039f02a77
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: FedeDP, federico-sysdig, incertum The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What type of PR is this?
/kind cleanup
Any specific area of the project related to this PR?
/area libsinsp
Does this PR require a change in the driver versions?
What this PR does / why we need it:
Some refactorings to try and improve the performance of event filtering. In particular the PR concentrates on avoiding string creation by passing around only
std::string_view
objects.Some minor improvements have been also applied, such as creating objects controlled by a
shared_ptr
withstd::make_shared
to ensure that the control block is not allocated separate from the object, thus avoiding one allocation and making it more cache friendly.Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?: