mchechulnikov / photosphere-di

No longer supported | Simple .NET dependency injection framework based on emitting IL code at service registration time
MIT License
2 stars 0 forks source link

Speeds up phase of registration by reducing runtime duplicated logic #8

Open mchechulnikov opened 8 years ago

mchechulnikov commented 8 years ago

Container build dynamic method for every registration from the very beginnings, including object graph analysis and emmiting CIL code. It requires refactoring, which allows to save much CPU time, which will cause the system to reuse already constructed and analyzed object graphs and already emitted CIL code.

mchechulnikov commented 8 years ago

Need to transform CilEmitter to GilEmissionRecorder and unbind it from ILGenerator.

mchechulnikov commented 8 years ago

Hm, no. Need to reuse already built code, not record method of building.