jdaugherty commented on code in PR #15800:
URL: https://github.com/apache/grails-core/pull/15800#discussion_r3506091485
##########
grails-encoder/src/main/groovy/org/grails/encoder/CodecMetaClassSupport.groovy:
##########
@@ -38,6 +42,8 @@ class CodecMetaClassSupport {
static final Object[] EMPTY_ARGS = []
static final String ENCODE_AS_PREFIX = 'encodeAs'
static final String DECODE_PREFIX = 'decode'
+ private static final Set<MetaMethodRegistrationKey>
REGISTERED_META_METHODS = Collections.newSetFromMap(new
ConcurrentHashMap<MetaMethodRegistrationKey, Boolean>())
Review Comment:
These static values are effectively unbounded now. Why can't an LRU
approach be used?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]