summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorEli Cohen <eli@mellanox.com>2020-02-26 16:03:16 +0300
committerSaeed Mahameed <saeedm@mellanox.com>2020-03-26 09:19:04 +0300
commitb820ce00e03af3255e1db9cc086caf742ea32809 (patch)
treec7615e264b4b97fe31852ce0ad408c9ae60821b9 /tools/perf/scripts/python/export-to-postgresql.py
parentd528d4970503edafc23bd43d322a818d74954f7a (diff)
downloadlinux-b820ce00e03af3255e1db9cc086caf742ea32809.tar.xz
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 <eli@mellanox.com> Reviewed-by: Mark Bloch <markb@mellanox.com> Reviewed-by: Maor Gottlieb <maorg@mellanox.com> Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions