MethodCaller GetMethod Performance enhancement

MethodCaller GetMethod Performance enhancement

Old forum URL:

goracio posted on Sunday, January 06, 2008

In MethodCaller GetMethod does a lot of work to find method.

Would be better on finding methodinfo to put it in cache for later calls. Cahe can be done in static field like a dictionary of dictionaries protected by ReaderWriter lock. Of course i can do it myself but it would be inconsistent with new releases of CSLA.



rasupit replied on Sunday, January 06, 2008

This subject was discussed in MethodCaller: Possible Big Performance Boost??

would you like to place your comment in that thread?


goracio replied on Sunday, January 06, 2008

Good question:)

But now i think contrary to my proposition. Methods in famework have not much parameters, i think getting method from the type of the object not much expensive in this case and may be returned at first try. Performance boost  would be if there used delegates to the methods (not methodinfo), but in this case we are in need real objects that a long lived and taken from the pool.


Copyright (c) Marimer LLC