Univention Bugzilla – Full Text Bug Listing |
Summary: | UMC freezes when the search in package management module returns too many results | ||
---|---|---|---|
Product: | UCS | Reporter: | Johannes Keiser <keiser> |
Component: | UMC - Package management | Assignee: | Jürn Brodersen <brodersen> |
Status: | CLOSED FIXED | QA Contact: | Johannes Keiser <keiser> |
Severity: | normal | ||
Priority: | P5 | CC: | ahlers, best, brodersen, requate |
Version: | UCS 4.2 | Flags: | best:
Patch_Available+
|
Target Milestone: | UCS 4.2-3-errata | ||
Hardware: | Other | ||
OS: | Linux | ||
See Also: | https://forge.univention.org/bugzilla/show_bug.cgi?id=44361 | ||
What kind of report is it?: | Bug Report | What type of bug is this?: | 4: Minor Usability: Impairs usability in secondary scenarios |
Who will be affected by this bug?: | 3: Will affect average number of installed domains | How will those affected feel about the bug?: | 3: A User would likely not purchase the product |
User Pain: | 0.206 | Enterprise Customer affected?: | |
School Customer affected?: | ISV affected?: | ||
Waiting Support: | Flags outvoted (downgraded) after PO Review: | ||
Ticket number: | Bug group (optional): | UCS Performance, Usability | |
Max CVSS v3 score: | |||
Attachments: | proposed patch |
Description
Johannes Keiser
2017-07-26 15:16:47 CEST
Could this be a regression by Bug #44431? (In reply to Florian Best from comment #1) > Could this be a regression by Bug #44431? It's bug 44361 :( The localeCompare function I used is a lot slower than I expected... I'm looking into alternatives. The easiest solution might be to check how many entries we need to sort and not using locale aware sorting for more than X entries. Created attachment 9065 [details] proposed patch The patch uses a pre initialized Intl.Collator object (https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Collator) which speeds up the comparison significantly. Times for sorting 48736 packages: intlCollator.compare(a, b): 571ms a.toLowerCase() < b.toLowerCase(): 231ms a < b: 87ms MDN suggests sorting with a map: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort But I think that would need quite a bit of time and effort to implement. *** Bug 45624 has been marked as a duplicate of this bug. *** 4.2-3: b890537e 47f2d0d7 849c12c0 90b67e51 7d65e151: YAML 4.3-0: 89d875ef 9350e992 1d5a065f 1e8826bd OK Code OK Sorting of 50.000 grid entries now takes < 1s OK Sorting with undefined/null values inbetween still works ~OK Sorting a column where every value is the same (e.g. path in users) sorts arbitrarily. see Bug #44690 OK Merge OK YAML (bd61598) -> verified |