mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
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
This commit is contained in:
parent
ae97d410c5
commit
f88ea12bac
3 changed files with 56 additions and 8 deletions
|
@ -188,7 +188,7 @@ struct tagcache_search {
|
|||
int entry_count;
|
||||
bool valid;
|
||||
bool initialized;
|
||||
unsigned long *unique_list;
|
||||
uint32_t *unique_list;
|
||||
int unique_list_capacity;
|
||||
int unique_list_count;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue