How to physically remove unneeded Magento2 core modules (even those with dependencies) via composer.json with the help of this module providing mock classes.
Posts with the tag: Performance
Poking around in Magento2 I stumbled upon
Magento\Framework\ObjectManager\DefinitionFactory which takes care of how the cached DI (Dependency Injections) definitions are loaded. I’ve created a Pull Request but never submitted it.