[
https://issues.apache.org/jira/browse/ORC-1710?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
William Hyun closed ORC-1710.
-----------------------------
> [Java] reduce enum array allocation
> -----------------------------------
>
> Key: ORC-1710
> URL: https://issues.apache.org/jira/browse/ORC-1710
> Project: ORC
> Issue Type: Task
> Components: Java
> Reporter: Sean Sullivan
> Assignee: Sean Sullivan
> Priority: Minor
> Fix For: 2.1.0
>
>
> Reduce Java enum array allocation.
>
> Each invocation of .values() returns a new array. We can reduce the number of
> array allocations by caching the result of .values (in some circumstances)
>
> Reference:
> [https://www.gamlor.info/wordpress/2017/08/javas-enum-values-hidden-allocations/]
--
This message was sent by Atlassian Jira
(v8.20.10#820010)