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

perf(checker): Improve performance of check #542

Merged
merged 2 commits into from
Jun 15, 2020

Conversation

litleleprikon
Copy link
Contributor

@litleleprikon litleleprikon commented Jun 11, 2020

In checker the most hot place is a calls for getMetricDataState function. This PR tries to improve performance of this calls.

Relates #428

borovskyav
borovskyav previously approved these changes Jun 11, 2020
@coveralls
Copy link

coveralls commented Jun 11, 2020

Coverage Status

Coverage increased (+0.02%) to 80.777% when pulling 3cb72a4 on feature/fix-metrics-copying into 7f7e9f4 on master.

@litleleprikon litleleprikon changed the title perf(checker): Change metrics type to pointer in getMetricDataState perf(checker): Improve performance of check Jun 11, 2020
litleleprikon added 2 commits June 15, 2020 12:28
Function getMetricDataState is called very often and each time it called
all params are copied. Change params types to pointers solves this
problem.

Relates #428
@litleleprikon litleleprikon merged commit 2c673bd into master Jun 15, 2020
@litleleprikon litleleprikon deleted the feature/fix-metrics-copying branch June 15, 2020 09:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants