improve performance in Reflector for case classes
Performance could be improved :
1) By accessing fields with productElement instead of reflection, when it is reasonable to.
2) By caching the results of any reflection lookup in a TrieMap[Class, Map[String, Method]] (or TrieMap[Class, Map[String, Int]] for above case)
1) By accessing fields with productElement instead of reflection, when it is reasonable to.
2) By caching the results of any reflection lookup in a TrieMap[Class, Map[String, Method]] (or TrieMap[Class, Map[String, Int]] for above case)
Leave a comment