[MGNLCAT-84] CategorizationTemplatingFunctions.getSortedList() needs optimization in sorting Created: 30/Jul/13  Updated: 23/Aug/22

Status: Open
Project: Magnolia Categorization Module
Component/s: None
Affects Version/s: None
Fix Version/s: 1.2.x

Type: Improvement Priority: Neutral
Reporter: Jaroslav Simak Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: performance
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Team: AuthorX

 Description   

We do sort twice in some cases which is totally unnecessary.
We can create one comparator that will do sort based on more properties. There is no need to run sort two times, if collections have lots of items, this method can be very slow.

Good thing would be to implement some caching in comparator so we don't need to always take value from repo.


Generated at Mon Feb 12 04:42:56 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.