From 65aee8f3f32f8f936aa272301ad69fc38c0f258c Mon Sep 17 00:00:00 2001 From: OpenGnSys Support Team Date: Wed, 25 Sep 2024 14:40:28 +0200 Subject: json: move list_head at the tip of struct og_cache_image this is accessed on list iterations in first place, improve cache locality. --- src/json.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/json.h b/src/json.h index ff5c8ad..cc08d9d 100644 --- a/src/json.h +++ b/src/json.h @@ -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) -- cgit v1.2.3-18-g5258