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

Added debug output, optimized performance #8

Merged
merged 2 commits into from
Sep 26, 2024
Merged

Conversation

floriankraemer
Copy link
Contributor

No description provided.

@floriankraemer floriankraemer merged commit 814232f into master Sep 26, 2024
6 checks passed
@floriankraemer floriankraemer deleted the console-output branch September 26, 2024 20:59
$this->$property = $metrics[$property];
}
}
// Not pretty to set each but more efficient than using a loop and $this->metrics

Choose a reason for hiding this comment

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

It's not only not so pretty, it also changes the behavior, doesn't it? Perviously it checked if the prop in metrics array exists and if yes set it, so you could have passed deltas to change only like 2 metrics, with your change you always need to put a full set of $metrics, because every not included property will be set to 0.0. That's probably not an issue in this case because this method probably is only called once?

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