mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-03 02:22:48 +00:00
lib: Reduce size of hash_bucket by 8 bytes
pahole reports that the hash_bucket has 2 4 byte holes in the data structure. Let's reorganize this a bit and save 8 bytes per hash_bucket instance. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
This commit is contained in:
parent
a2caf2b5e1
commit
a8e8f1bc72
@ -28,12 +28,12 @@ struct hash_bucket {
|
||||
*/
|
||||
int len;
|
||||
|
||||
/* Linked list. */
|
||||
struct hash_bucket *next;
|
||||
|
||||
/* Hash key. */
|
||||
unsigned int key;
|
||||
|
||||
/* Linked list. */
|
||||
struct hash_bucket *next;
|
||||
|
||||
/* Data. */
|
||||
void *data;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user