mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-08 01:47:29 +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;
|
int len;
|
||||||
|
|
||||||
/* Linked list. */
|
|
||||||
struct hash_bucket *next;
|
|
||||||
|
|
||||||
/* Hash key. */
|
/* Hash key. */
|
||||||
unsigned int key;
|
unsigned int key;
|
||||||
|
|
||||||
|
/* Linked list. */
|
||||||
|
struct hash_bucket *next;
|
||||||
|
|
||||||
/* Data. */
|
/* Data. */
|
||||||
void *data;
|
void *data;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user