Mvvmicro
Mvvmicro copied to clipboard
Optimization: Avoid the encapsulation of stored factories in the container
The factories in the container are stored in a function () => factory(this), pushing a additional function on the stack when using the factory.
The factory could be stored as is, and calls modified as factories[type].Item2(this) to avoid this excendentary call.