Skip to content

reduce the unnecessary calls of toString () for method args #31

@LCDZhao-Z

Description

@LCDZhao-Z

Current Behaviour

To get the config of arg,servicekeeper will call toString() of the arg value to generate argResourceId whether the arg has configs or not. It leads to a large number of unnecessary calls of toString(), resulting in unnecessary performance consumption.

Expected

Effect

Servicekeeper calls toString() of the arg value to generate argResourceId only when the arg has configs.

Implementation

Servicekeeper determines whether an arg config belongs to a method through the prefix of the arg config, packages the method config and arg configs of the same method into an object, and stores it with the method id as the key.

Servicekeeper obtains the method config and arg configs of the method through the method id, and then determines whether to call toString() on its arg value to generate argResourceId by checking whether the arg itself has configs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions