Export to GitHub

sharp-architecture - issue #96

SharpModelBinder is seem to be slow process


Posted on May 2, 2009 by Happy Kangaroo

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

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

  2. 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)

Comment #1

Posted on Jun 17, 2009 by Helpful Camel

Please provide a patch or a specific suggestion for improvement if you'd like this changed.

Thank you, Billy

Status: WontFix

Labels:
Type-Defect Priority-Medium