[ https://issues.apache.org/jira/browse/ORC-1710?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sean Sullivan updated ORC-1710: ------------------------------- Description: 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/] was: 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) > [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 > Priority: Minor > > 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)