[jboss-jira] [JBoss JIRA] (LOGMGR-140) Change reflection to use MethodHandle's
David Lloyd (JIRA)
issues at jboss.org
Thu Sep 28 14:41:00 EDT 2017
[ https://issues.jboss.org/browse/LOGMGR-140?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13469891#comment-13469891 ]
David Lloyd commented on LOGMGR-140:
------------------------------------
It has been discovered that method handles are much more expensive memory-wise than reflection. It could still be OK to use for one-offs but this should be kept in mind for later.
> Change reflection to use MethodHandle's
> ---------------------------------------
>
> Key: LOGMGR-140
> URL: https://issues.jboss.org/browse/LOGMGR-140
> Project: JBoss Log Manager
> Issue Type: Enhancement
> Reporter: James Perkins
> Assignee: James Perkins
> Priority: Minor
>
> Use of reflection should be reduced or completely removed in favor of using {{MethodHandle}}'s.
> Currently reflection is used in:
> * {{org.jboss.logmanager.config.AbstractPropertyConfiguration}}
> * {{org.jboss.logmanager.AtomicArray}}
> * {{org.jboss.logmanager.LogManager}}
> It's possible {{org.jboss.logmanager.LogManager}} may be tricky since it uses hacks to add levels.
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
More information about the jboss-jira
mailing list