Combine registration and lifetime manager
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