You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Josh Elser (JIRA)" <ji...@apache.org> on 2016/03/03 18:34:18 UTC

[jira] [Resolved] (CALCITE-1093) Smarter use of List construction

     [ https://issues.apache.org/jira/browse/CALCITE-1093?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Josh Elser resolved CALCITE-1093.
---------------------------------
       Resolution: Fixed
    Fix Version/s:     (was: next)
                   1.7.0

Fixed in https://git1-us-west.apache.org/repos/asf?p=calcite.git;a=commit;h=ea41b3412f099c8f1051f1b324b1ba03d644962a

> Smarter use of List construction
> --------------------------------
>
>                 Key: CALCITE-1093
>                 URL: https://issues.apache.org/jira/browse/CALCITE-1093
>             Project: Calcite
>          Issue Type: Sub-task
>          Components: avatica
>            Reporter: Josh Elser
>            Assignee: Josh Elser
>             Fix For: 1.7.0
>
>
> Through profiling the Avatica server, I noticed that we were spending some time resizing an ArrayList while converting {{MetaResultSet}}'s to {{ResultSetResponse}}'s. This was because we did not specify the capacity of the {{ArrayList<ResultSetResponse>}} during construction despite knowing what the capacity needed to be.
> We can avoid some costly array copies if we specify the capacity in the constructor.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)