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

Fix some parsing logic in meminfo-writer #86

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

DemiMarie
Copy link
Contributor

Not a security issue as the input is trusted.

Not a security issue as the input is trusted.
@DemiMarie
Copy link
Contributor Author

PipelineRetry

@DemiMarie
Copy link
Contributor Author

PipelineRetryFailed

} else if (key == *(unsigned long long *) "SwapFree:") {
SwapFree = val;
nitems |= 32;
switch (*ptr) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This function is executed at least 10 times per second, in every VM. Can you verify that your change do not make it any slower than it was? For example extract it into a tight loop and measure time for 10000 iterations or such.

Copy link
Member

@marmarek marmarek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(see comment above, just marking PR as requiring something, even if it isn't strictly change request)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants