Nikita Timofeev created CAY-2416: ------------------------------------ Summary: 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 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)