container icon indicating copy to clipboard operation
container copied to clipboard

Combine registration and lifetime manager

Open ENikS opened this issue 6 years ago • 0 comments

Description

Original implementation didn’t have a concept of registration. Policies were placed into a registration matrix based on policy type and name. It was fast and efficient but presented certain challenges for optimization. Unity v5 introduced registrations that solved this issue but introduced another

Problem

Registrations combined policies into single entity, but required extra allocation of storage objects, policy sets called Internal Registration . This internal registration increased processing overhead as well as memory footprint.

Solution

Each registration already has object holding required information: lifetime manager. If it could also store associates policies and injections, the internal registrations will be unnecessary.

Impact

Very minimal to the end user

ENikS avatar Dec 28 '19 05:12 ENikS