diff options
author | OpenGnSys Support Team <soporte-og@soleta.eu> | 2024-09-25 14:40:28 +0200 |
---|---|---|
committer | OpenGnSys Support Team <soporte-og@soleta.eu> | 2024-09-25 14:48:49 +0200 |
commit | 65aee8f3f32f8f936aa272301ad69fc38c0f258c (patch) | |
tree | d3e358adc1b625673060b23c79d3dc3a0a358e2d /src/json.h | |
parent | c7bfc370ae8974302cf1e316b3e03d0e6e960e0c (diff) |
json: move list_head at the tip of struct og_cache_image
this is accessed on list iterations in first place, improve cache locality.
Diffstat (limited to 'src/json.h')
-rw-r--r-- | src/json.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |