1

Closed

unnecessary complicated method Messenger.Implements

description

method Messenger.Implements() used in every Send in loop for every subscriber, that is relatively frequent. this method uses slow Reflection-based technique to archive same result as fast native Type.IsAssignableFrom(). i suggests to remove method "Implements()" and change reference to it (in Messenger.cs):

Implements(item.Action.Target.GetType(), messageTargetType)

=>

messageTargetType.IsAssignableFrom (item.Action.Target.GetType ())
Closed Oct 13, 2014 at 1:54 PM by lbugnion

comments