From: Mathieu Desnoyers Date: Thu, 7 Jul 2011 14:24:00 +0000 (-0400) Subject: rculfhash: change order of node fields for locality X-Git-Tag: v0.7.0~43^2~215 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=9b35f1e4c8561fd8937ab394e65cc9b230ea854d;p=userspace-rcu.git rculfhash: change order of node fields for locality Signed-off-by: Mathieu Desnoyers --- diff --git a/urcu/rculfhash.h b/urcu/rculfhash.h index e650acd..2e50beb 100644 --- a/urcu/rculfhash.h +++ b/urcu/rculfhash.h @@ -5,12 +5,14 @@ #include struct rcu_ht_node { + /* cache-hot for iteration */ struct rcu_ht_node *next; - void *key; - size_t key_len; - unsigned long hash; unsigned long reverse_hash; + void *key; + unsigned int key_len; unsigned int dummy; + /* cache-cold for iteration */ + unsigned long hash; struct rcu_head head; };