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

metrics: metrics_local: Remove key argument to optimize performance #3473

Merged
merged 1 commit into from
Jul 30, 2021

Commits on Jul 28, 2021

  1. metrics: metrics_local: Remove key argument to optimize performance

    This is because our use cases doesn't need key for distinguish plugins
    and agents.
    One of the use cases to specify plugin_id calling has a possibility to become the bottleneck for performance.
    The reason is Kernel#instance_variable_defined? method is relatively
    heavy operation.
    
    Signed-off-by: Hiroshi Hatake <hatake@calyptia.com>
    cosmo0920 committed Jul 28, 2021
    Configuration menu
    Copy the full SHA
    200abba View commit details
    Browse the repository at this point in the history