From f88ea12bacf381ad4f39ba2328c806e772c0dda8 Mon Sep 17 00:00:00 2001 From: William Wilgus Date: Tue, 1 Mar 2022 22:37:11 -0500 Subject: 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 --- apps/tagcache.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/tagcache.h') diff --git a/apps/tagcache.h b/apps/tagcache.h index 52a9283e35..b7c4aadbb1 100644 --- a/apps/tagcache.h +++ b/apps/tagcache.h @@ -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; -- cgit