You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@orc.apache.org by "William Hyun (Jira)" <ji...@apache.org> on 2024/05/10 06:47:00 UTC
[jira] [Resolved] (ORC-1710) [Java] reduce enum array allocation
[ https://issues.apache.org/jira/browse/ORC-1710?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
William Hyun resolved ORC-1710.
-------------------------------
Fix Version/s: 2.1.0
Resolution: Fixed
Issue resolved by pull request 1926
[https://github.com/apache/orc/pull/1926]
> [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)