Skip to content

Performance problem #32

@AqlaSolutions

Description

@AqlaSolutions

I want to use your Factory extension so I profiled your project and found several inefficient code places changing which could really improve performance:

1/ FuncProvider.Create should cache result of

functionFactory.GetMethodInfo(genericArguments.Length).MakeGenericMethod(genericArguments) 

with static ConcurrentDictionary or alternatives.

2/ FuncProvider.Create should use cached Reflection.Emit-ed method to do Invoke instead of plain reflection.

3/ FunctionFactory.GetMethodInfo should cache its results.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions