]> git.proxmox.com Git - mirror_iproute2.git/commit
ss: speedup resolve_service()
authorEric Dumazet <edumazet@google.com>
Fri, 29 May 2015 11:45:48 +0000 (04:45 -0700)
committerStephen Hemminger <shemming@brocade.com>
Thu, 25 Jun 2015 03:11:33 +0000 (23:11 -0400)
commit22588a0e65428611af7f7da648fc9542d65a2a0c
treec02991d34b2a3fe722db50509c1774109c8926e1
parentd2055ea597e571bbbb6468b23b9c85de5ebf4591
ss: speedup resolve_service()

Lets implement a full cache with proper hash table, memory got cheaper
these days.

Before :

$ time ss -t | wc -l
529678

real 0m22.708s
user 0m19.591s
sys 0m2.969s

After :

$ time ss -t | wc -l
528291

real 0m5.078s
user 0m4.099s
sys 0m0.985s

Signed-off-by: Eric Dumazet <edumazet@google.com>
misc/ss.c