[
https://issues.apache.org/jira/browse/CAY-2416?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16418910#comment-16418910
]
ASF GitHub Bot commented on CAY-2416:
-------------------------------------
Github user const1993 closed the pull request at:
https://github.com/apache/cayenne/pull/279
> 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)