I'm creating a DI container extension. It's too experimental to be bundled with PHP itself, so I'm thinking of releasing it with PECL or PIE.
https://github.com/SakiTakamachi/pdi
GitHub - SakiTakamachi/pdi: Pdi - Dependency injection

Pdi - Dependency injection. Contribute to SakiTakamachi/pdi development by creating an account on GitHub.

GitHub
@saki hmmmm, an interesting approach to DI 🤔
Does it actually perform better than implementing it in native PHP code?

@nmolham

Although I have only done rough measurements, it was about 10 times faster than Laravel's DI.

This saves the overhead of using reflection classes, so it is expected to be faster than DI using reflection classes.

It takes twice as long as the regular "new class" version, but we are currently revising the design to see if we can make it even faster.

@saki that is pretty cool, thanks for the explanation
@saki you know what, this is going to be super useful when installing php extensions become streamlined with composer. Imagine having multiple low-level extensions handling memory and computation intense routines like class reflections 🤯
@nmolham To be honest, I had never really thought much about DI speed until recently. Originally, I was inspired to create this because an acquaintance of mine had mentioned that it would be nice to have a built-in DI that was easy to use. I was surprised at how much of a difference in speed it made.