diff options
author | William Wilgus <wilgus.william@gmail.com> | 2022-03-01 22:37:11 -0500 |
---|---|---|
committer | William Wilgus <wilgus.william@gmail.com> | 2022-03-02 20:22:49 -0500 |
commit | f88ea12bacf381ad4f39ba2328c806e772c0dda8 (patch) | |
tree | 211a5b21bffda36e54c0a2fe62d3c94faee85f86 /apps/tagtree.c | |
parent | ae97d410c5d2114d353480301e8c1f1d7bbaacce (diff) | |
download | rockbox-f88ea12bacf381ad4f39ba2328c806e772c0dda8.tar.gz rockbox-f88ea12bacf381ad4f39ba2328c806e772c0dda8.zip |
tagcache compress uniqbuf 2 16-bit indices occupy a single 32 bit slot
a lot of space is wasted when file indices less than 65535
entries should be more than 1 byte apart so use the LSB as a flag
when indices are > 65535 set flag to 0 and proceed as before
explicitly mark uniqbuf as 32bit
Change-Id: I54e06c152c369eb6c0322186fe2c1e9a1e6d940d
Diffstat (limited to 'apps/tagtree.c')
-rw-r--r-- | apps/tagtree.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/tagtree.c b/apps/tagtree.c index 9684d5424c..48ef1e28ce 100644 --- a/apps/tagtree.c +++ b/apps/tagtree.c | |||
@@ -111,7 +111,7 @@ enum variables { | |||
111 | 111 | ||
112 | /* Capacity 10 000 entries (for example 10k different artists) */ | 112 | /* Capacity 10 000 entries (for example 10k different artists) */ |
113 | #define UNIQBUF_SIZE (64*1024) | 113 | #define UNIQBUF_SIZE (64*1024) |
114 | static long uniqbuf[UNIQBUF_SIZE / sizeof(long)]; | 114 | static uint32_t uniqbuf[UNIQBUF_SIZE / sizeof(uint32_t)]; |
115 | 115 | ||
116 | #define MAX_TAGS 5 | 116 | #define MAX_TAGS 5 |
117 | #define MAX_MENU_ID_SIZE 32 | 117 | #define MAX_MENU_ID_SIZE 32 |