Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable reuse of Injection Members #19

Open
ENikS opened this issue Jun 11, 2020 · 0 comments
Open

Enable reuse of Injection Members #19

ENikS opened this issue Jun 11, 2020 · 0 comments
Assignees

Comments

@ENikS
Copy link
Contributor

ENikS commented Jun 11, 2020

Description

In current implementation each injected member is uniquely associated with a member and a registration.

Problem

Creating an unique injection member for each individual registration even when they could be reused (default constructor for example) creates unnecessary memory and performance overhead.

Solution

This could be solved by not storing selection information with the InjectionMember and do static selection during resolution.

Impact

Minimal, if any

@ENikS ENikS self-assigned this Jun 11, 2020
@ENikS ENikS transferred this issue from unitycontainer/abstractions Jun 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant