1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-04-09 15:22:13 -04:00

launcher v2: performance optimizations

- Use ListView in all tab
- use filesystem cache to speed up first launch
- apply highlights to visible models
This commit is contained in:
bbedward
2026-02-10 14:56:29 -05:00
parent 46a2f6f0d8
commit 5342647bfb
10 changed files with 460 additions and 332 deletions

View File

@@ -25,6 +25,9 @@ function findPrevNonHeaderIndex(flatModel, startIndex) {
}
function getSectionBounds(flatModel, sectionId) {
if (flatModel._sectionBounds && flatModel._sectionBounds[sectionId])
return flatModel._sectionBounds[sectionId];
var start = -1, end = -1;
for (var i = 0; i < flatModel.length; i++) {
if (flatModel[i].isHeader && flatModel[i].section?.id === sectionId) {