You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Julian Hyde (Jira)" <ji...@apache.org> on 2023/10/14 17:36:00 UTC

[jira] [Resolved] (CALCITE-6050) Add interface ImmutablePairList

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

Julian Hyde resolved CALCITE-6050.
----------------------------------
    Resolution: Fixed

Fixed in [95408cc7|https://github.com/julianhyde/calcite/commit/95408cc71fb7cc2742d09dac1a2fe113daf5328f].

> Add interface ImmutablePairList
> -------------------------------
>
>                 Key: CALCITE-6050
>                 URL: https://issues.apache.org/jira/browse/CALCITE-6050
>             Project: Calcite
>          Issue Type: Improvement
>            Reporter: Julian Hyde
>            Assignee: Julian Hyde
>            Priority: Major
>             Fix For: 1.36.0
>
>
> In CALCITE-5706, we added {{class PairList}}; in this change, we add {{ImmutablePairList}}, which is optimized for cases where the list does not change after creation. The implementation stores entries in an array, rather than a list, saving memory allocations and indirection.
> {{PairList}} and {{ImmutablePairList}} are now interfaces; this allows us to have multiple implementations that do not have a common base class.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)