java - Should you store fields and their names in a Map when using reflection? -


i using reflection fields names , i'm accessing these fields rather often. store fields in hashmap<string, field> if found them once , them hashmap when need them again? or java similar , totally unneccesary?

this valid approach there no automated "caching" reflection. each reflective call consumes time caching on own idea.


Comments