soenneker.utils.autobogus
soenneker.utils.autobogus copied to clipboard
(Performance idea) Code generation
Hello, Jake!
You've stated that one of this project goals is to Be fast.
I believe that using code generation is faster than using reflection, and (correct me if I'm wrong) current implementation of Binder is using the reflection. Are there any plans to use the code generation?
@VadymLevkovskyi Thanks for your interest!
There are no plans to support code generation.. but I'm not opposed to it. Some of my initial thoughts:
- This thing uses a LOT of reflection. I'd want to incorporate some sort of middle layer (or another library?) so it's plug and play as much as possible.
- The generic types and methods will most likely be problematic. That may be ok though, perhaps we could use reflection in those situations.
Are you open to working on this?