Skip to content

Lambdas for default methods in config proxy object are re-created for each proxy instance, instead of each proxy class #684

Description

@rgallardo-netflix

When instantiating a config proxy through ConfigProxyFactory, the lambdas that allow access to default methods in the interface are re-created for each proxy object, even though they are only unique to the entire class.

This is normally not an issue, but if a client creates many (in the hundreds) instances of proxies for the same class (for different prefixes, for example) they can end up consuming a large amount of metaclass space.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions