aboutsummaryrefslogtreecommitdiff
path: root/scripts/gcc-plugins/cyc_complexity_plugin.c
diff options
context:
space:
mode:
authorEli Cohen <[email protected]>2020-02-26 15:03:16 +0200
committerSaeed Mahameed <[email protected]>2020-03-25 23:19:04 -0700
commitb820ce00e03af3255e1db9cc086caf742ea32809 (patch)
treec7615e264b4b97fe31852ce0ad408c9ae60821b9 /scripts/gcc-plugins/cyc_complexity_plugin.c
parentd528d4970503edafc23bd43d322a818d74954f7a (diff)
net/mlx5: Simplify matching group searches
Instead of using two different structs for searching groups with the same match, use a single struct and thus simplify the code, make it more readable and smaller size which means less code cache misses. text data bss dec hex before: 35524 2744 0 38268 957c after: 35038 2744 0 37782 9396 When testing add 70000 rules, delete all the rules, and repeat three times taking the average, we get (time in seconds): Before the change: insert 16.80, delete 11.02 After the change: insert 16.55, delete 10.95 Signed-off-by: Eli Cohen <[email protected]> Reviewed-by: Mark Bloch <[email protected]> Reviewed-by: Maor Gottlieb <[email protected]> Signed-off-by: Saeed Mahameed <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/cyc_complexity_plugin.c')
0 files changed, 0 insertions, 0 deletions