-
Notifications
You must be signed in to change notification settings - Fork 116
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
Cache delagates and metadata for performance improvements #137
Comments
Hi @arontsang , you are right. Actual benchmarks show that performance difference is big enough.
Please feel free to contribute! |
I tried to contribute this feature, but unfortunately, it is a little too complicated.
|
Sorry for delay, was on vacation) Yes - generics are tricky, half of all bugs in this project are generics related. For example you can take a look at here. In short, you need not to call FieldDef itself, but rather FieldRef with DeclaringType=generic TypeRef of class where field resides. But if it doesn't help I will definitely add this feature in future. |
Here is my attempt at this. As I said before, it is failing on generics. At present, things that aren't done:
AdviceWeaveProcessBase<TEffect>
|
Hi @arontsang
|
|
There are improvements. So cool! |
A reflection call on each invocation limits performance when using the metadata argument.
The text was updated successfully, but these errors were encountered: