carliwar / sharp-architecture

Automatically exported from code.google.com/p/sharp-architecture
Other
0 stars 0 forks source link

SharpModelBinder is seem to be slow process #96

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Goto
http://code.google.com/p/sharp-architecture/source/detail?spec=svn454&r=446

2. view
/trunk/src/SharpArch/SharpArch.Web/ModelBinder/EntityValueProviderResult.cs 

3. at the line said

return entityRepository.GetType()
                .InvokeMember("Get", BindingFlags.InvokeMethod, null,
entityRepository, new[] { typedId });

InvokeMember from type at runtime is slow process and should be improved. I
am not 100% sure what is performance but from what I see during the debug,
this one line take some time to process the line. (feeling not right to do)

Original issue reported on code.google.com by ense...@gmail.com on 2 May 2009 at 11:56

GoogleCodeExporter commented 9 years ago
Please provide a patch or a specific suggestion for improvement if you'd like 
this 
changed.

Thank you,
Billy

Original comment by wmccaffe...@gmail.com on 17 Jun 2009 at 3:48