dcerpc: improve greatly the speed of processing of DCERPC packets
authorMatthieu Patou <mat@matws.net>
Fri, 10 Oct 2014 20:04:56 +0000 (16:04 -0400)
committerMichael Mann <mmann78@netscape.net>
Tue, 27 Jun 2017 13:01:47 +0000 (13:01 +0000)
commit6bd87bdd5d8f114768f5d9777d7e1713c017e488
tree37c47127fb586b0b6beb2228dab66177cf8407b6
parent564445f7998b3d593681e5e3be05486c2296288c
dcerpc: improve greatly the speed of processing of DCERPC packets

Instead of using one big linked list, we use a stack of list once all the pointers of one level have been handled the list is removed from the stack and we go to the level before.

Because of this the lists are much smaller and far less CPU is spent iterating on the objects or inserting objects in the list

Bug: 10544
Change-Id: I432aaf5b4b781411c92da92abe9c5503034b65dc
Reviewed-on: https://code.wireshark.org/review/4598
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
epan/dissectors/packet-dcerpc.c