You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by "Nikita Timofeev (JIRA)" <ji...@apache.org> on 2018/03/29 13:57:00 UTC

[jira] [Closed] (CAY-2416) Change TreeMap for HashMap to store data in Cayenne model classes

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

Nikita Timofeev closed CAY-2416.
--------------------------------
    Resolution: Fixed

> Change TreeMap for HashMap to store data in Cayenne model classes
> -----------------------------------------------------------------
>
>                 Key: CAY-2416
>                 URL: https://issues.apache.org/jira/browse/CAY-2416
>             Project: Cayenne
>          Issue Type: Improvement
>          Components: Core Library, Modeler, Non-GUI Tools
>            Reporter: Nikita Timofeev
>            Assignee: Nikita Timofeev
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 4.1.M2
>
>
> Cayenne uses {{TreeMap}} internally to keep all model-related entities sorted (Entities, Attributes, Relationships, etc.)
> But eventually ordering is needed only for tools (e.g. Modeler), while in runtime it only creates unnecessary performance overhead.
> So we can use {{HashMap}} for runtime and sort data explicitly where it is really needed (project saving, UI, etc.)



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)