Skip to content

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

@rgallardo-netflix

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions