James Im wrote: > Niklas Therning wrote: >> One of my favorite features with mina-sm is the method arguments >> matching described in the comments of the JIRA issue. It could be quite >> slow since it uses reflection and the matching is executed for every >> event. But this could probably be optimized significantly using byte >> code generation. That would be a lot of fun to implement! :-) >> > > reflection is horribly slow. For a desktop app it's ok but not for a > server IMO. > Well, reflection is of course a lot slower than direct method invocations. But whether it's acceptable or not always depends on the application in question. For some applications the performance hit from using reflection could be negligible.
Anyhow I would still want to optimize these parts of mina-sm using byte code generation and, if possible, eliminate the need for reflection entirely. -- Niklas Therning www.spamdrain.net