Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(Performance idea) Code generation #156

Open
VadymLevkovskyi opened this issue Apr 29, 2024 · 1 comment
Open

(Performance idea) Code generation #156

VadymLevkovskyi opened this issue Apr 29, 2024 · 1 comment

Comments

@VadymLevkovskyi
Copy link

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?

@soenneker
Copy link
Owner

@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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants