I always loved CRTP in C languages - it lets you access dynamically generated fields with so little effort.
So I've built a service management lib using it. It completely supports community modding and has average 0.0108μs service retrieval time.
Check it out: github.com/Shade-of-Sin...
github.com
GitHub - Shade-of-Singularity/ServiceCore: High-performance CRTP service management library with community modding support.
High-performance CRTP service management library with community modding support. - Shade-of-Singularity/ServiceCore