container icon indicating copy to clipboard operation
container copied to clipboard

Optimize Default Polucies

Open ENikS opened this issue 6 years ago • 0 comments

Container has several policies and chins that control how it operates. These should be consolidated into one logical unit and hosted by the root container.

Currently Default Policies are accessed via context.Get(null, null, .. ) method. Accessing them directly via direct reference would improve performance.

Default policies are held in regular PolicyList and as result suffer from overhead related to proper addressing. If help in specialized storage this could be eliminated.

Default lifetime managers for Type, Instance and Factory registrations are duplicated in each container. This creates overhead when child containers are created as well as during registrations in child containers.

References

ENikS avatar Dec 03 '19 01:12 ENikS