[jboss-jira] [JBoss JIRA] (JGRP-2048) ClassConfigurator: use constructors rather than Classes in map
Bela Ban (JIRA)
issues at jboss.org
Thu Jul 14 10:35:01 EDT 2016
[ https://issues.jboss.org/browse/JGRP-2048?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Bela Ban resolved JGRP-2048.
----------------------------
Resolution: Duplicate Issue
JGRP-2043 uses lambdas ({{Supplier<Header>}}) as values of the classMap hashmap. This is faster than storing {{MethodHandles}}.
> ClassConfigurator: use constructors rather than Classes in map
> --------------------------------------------------------------
>
> Key: JGRP-2048
> URL: https://issues.jboss.org/browse/JGRP-2048
> Project: JGroups
> Issue Type: Enhancement
> Reporter: Bela Ban
> Assignee: Bela Ban
> Priority: Minor
> Fix For: 4.0
>
>
> Investigate whether use of {{Constructor}} as values in the maps rather than {{Class<?>}} improves performance. {{Class.newInstance()}} does cache the constructor, but there's a security check that's executed once, so using the constructor may improve perf.
> Also, if a class doesn't have an empty constructor, using {{Class.newInstance()}} would throw an exception, whereas using constructors would detect this at load time.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
More information about the jboss-jira
mailing list