-
Notifications
You must be signed in to change notification settings - Fork 9
Description
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.