Performance and scalability: Performance issues using Reflection
API    1. Performance issues using Reflection API (4 messages)
Are there any issues or performance hits while using reflection
on the server side?     I have to load all the appropriate event
handlers based on the event object.     Which of the option is
better :     1- Load the preinstantiated classes using
properties file containing eventname and handler class name
mapping.     2- Use the reflection to load the handler classes.
Thanks in advance   2. Both your options require reflection,
since in 1, the class name will be read from file as a string.
The difference between the two options is that in 1, you
instantiate all the handlers on startup, while 2 does lazy
instantiation of the handlers (and caches them, I hope).
Reflection is slower than direct instantiation, no doubt. In my
experience, it is slower by at least an order of magnitude. But
there is no way around it if you don't want to hard-code the
mapping between event an