Skip to content

Optimize IPolicyList #21

@ENikS

Description

@ENikS

Accessing IPolicyList requires new allocations of Key object and contributes to performance penalties. This could be avoided if Type and Name were part of API. So instead of:

IBuilderPolicy Get(Type policyInterface, object buildKey, out IPolicyList containingPolicyList);
void Set(Type policyInterface, IBuilderPolicy policy, object buildKey = null);
void Clear(Type policyInterface, object buildKey);

it should be:

IBuilderPolicy Get(Type type, string name, Type policyInterface, out IPolicyList list);
void Set(Type type, string name, Type policyInterface, IBuilderPolicy policy);
void Clear(Type type, string name, Type policyInterface);

Metadata

Metadata

Assignees

No one assigned

    Labels

    Enhancement 🔨Improvement of existing features

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions