[
https://issues.apache.org/jira/browse/TAJO-1920?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14952552#comment-14952552
]
ASF GitHub Bot commented on TAJO-1920:
--------------------------------------
GitHub user dkhwangbo opened a pull request:
https://github.com/apache/tajo/pull/816
TAJO-1920: Calling 'Collection.toArray()' with zero-length array argument
makes performance worse
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.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/dkhwangbo/tajo TAJO-1920
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/tajo/pull/816.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #816
----
commit 9c3bd9318ebb56adff08f32b1cd4094e2501c8f5
Author: Dongkyu Hwangbo <[email protected]>
Date: 2015-10-12T02:36:11Z
initial commit
----
> 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
>
> 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)