You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@tajo.apache.org by "Hyunsik Choi (JIRA)" <ji...@apache.org> on 2015/11/02 18:42:27 UTC
[jira] [Resolved] (TAJO-1920) Calling 'Collection.toArray()' with
zero-length array argument makes performance worse
[ https://issues.apache.org/jira/browse/TAJO-1920?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Hyunsik Choi resolved TAJO-1920.
--------------------------------
Resolution: Fixed
Fix Version/s: 0.12.0
I just committed the patch. Thank you for your contribution.
> Calling 'Collection.toArray()' with zero-length array argument makes performance worse
> --------------------------------------------------------------------------------------
>
> Key: TAJO-1920
> URL: https://issues.apache.org/jira/browse/TAJO-1920
> Project: Tajo
> Issue Type: Improvement
> Reporter: Dongkyu Hwangbo
> Assignee: Dongkyu Hwangbo
> Priority: Minor
> Labels: newbie
> Fix For: 0.12.0
>
>
> When passing in an array of too small size, the {{toArray()}} method has to construct a new array of the right size using reflection. This has significantly worse performance than passing in an array of at least the size of the collection itself.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)