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

Feature: Can cache Argument(Source.*) any input argument by static field? #209

Open
Cricle opened this issue Feb 1, 2023 · 1 comment
Open

Comments

@Cricle
Copy link

Cricle commented Feb 1, 2023

Describe the solution you'd like
In many argument inject
image

Raw method call 1_000_000 use time 00:00:00.0188756
Only target and arg inject method call 1_000_000 use time 00:00:00.0371436
With target, arg, instance, targetType, method inject method call 1_000_000 use time 00:00:00.2172970

Describe alternatives you've considered
Generate a new class to store this arguments, for call method, use readonly static field.

Additional context
Add any other context or code snippets about the feature request here.

@pamidur
Copy link
Owner

pamidur commented Feb 1, 2023

The caching is indeed a big thing. Last I looked into it - the main problem was with generic methods and types for which we can't really use cache. So to be honest, I'd like to have these things cached, but I yet to find a proper and consistent way to do it.

Contributions are welcome!

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

No branches or pull requests

2 participants