mirror of https://git.48k.eu/ogserver
json: move list_head at the tip of struct og_cache_image
this is accessed on list iterations in first place, improve cache locality.master
parent
c7bfc370ae
commit
65aee8f3f3
|
@ -125,10 +125,10 @@ int og_json_parse_procedure(json_t *element, struct og_procedure *proc);
|
|||
#define OG_PARAM_IMG_CHECKSUM (1UL << 2)
|
||||
|
||||
struct og_cache_image {
|
||||
struct list_head list;
|
||||
const char *name;
|
||||
uint64_t size;
|
||||
const char *checksum;
|
||||
struct list_head list;
|
||||
};
|
||||
|
||||
#define OG_PARAM_CACHE_USED_SIZE (1UL << 0)
|
||||
|
|
Loading…
Reference in New Issue