[jboss-jira] [JBoss JIRA] (WFCORE-4982) Remove streaming from DeploymentUnitPhaseService
Darran Lofthouse (Jira)
issues at jboss.org
Sat May 23 06:44:03 EDT 2020
Darran Lofthouse created WFCORE-4982:
----------------------------------------
Summary: Remove streaming from DeploymentUnitPhaseService
Key: WFCORE-4982
URL: https://issues.redhat.com/browse/WFCORE-4982
Project: WildFly Core
Issue Type: Bug
Components: Server
Reporter: Darran Lofthouse
Assignee: Darran Lofthouse
Fix For: 12.0.0.Beta4
Presently the following is executed for every deployment for every deployment phase: -
{code:java}
Set<String> subSystemNames = list.stream().map(e -> e.getSubsystemName()).collect(Collectors.toSet());
{code}
This will be leading to a lot of unnecessary object allocation which could be avoided with a simple for loop instead.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
More information about the jboss-jira
mailing list