I heard that cglib takes less than as compare to java reflection for runtime object creation but I checked, it is taking 100 times more time than java reflection. Following is the result of my research Creating 10000 objects
CGLIB:191 milliseconds Normal:2 milliseconds Reflection:24 milliseconds
I want to ask here that what are the benefits of using cglib/javaassit over java reflection.
Aucun commentaire:
Enregistrer un commentaire