[ 
https://issues.apache.org/jira/browse/NIFI-15039?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

David Handermann updated NIFI-15039:
------------------------------------
    Fix Version/s: 2.7.0
       Resolution: Fixed
           Status: Resolved  (was: Patch Available)

> Replace usage of Enum.values() when called often in InvokeHTTP and 
> Elasticsearch Index Operations
> -------------------------------------------------------------------------------------------------
>
>                 Key: NIFI-15039
>                 URL: https://issues.apache.org/jira/browse/NIFI-15039
>             Project: Apache NiFi
>          Issue Type: Improvement
>            Reporter: Michael W Moser
>            Assignee: Michael W Moser
>            Priority: Minor
>             Fix For: 2.7.0
>
>          Time Spent: 1.5h
>  Remaining Estimate: 0h
>
> Each call to Enum.values() copies the Enum's values into a new array. When 
> Enum.values() is called often, this causes extra unnecessary garbage 
> collection pressure.
> Find instances where Enum.values() is called a lot and provide an 
> improvement.  Do not include cases where Enum.values() is called in exception 
> handling or during initialization.
> An interesting blog that explains the values() behavior for one use case:  
> https://www.gamlor.info/wordpress/2017/08/javas-enum-values-hidden-allocations/



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to