Rearrange packet list code
authorAlan T. DeKok <aland@freeradius.org>
Sat, 26 Nov 2011 15:08:52 +0000 (16:08 +0100)
committerAlan T. DeKok <aland@freeradius.org>
Sat, 26 Nov 2011 15:12:11 +0000 (16:12 +0100)
commit38bf153ff0f1ffdf4f3c2698e5c373898c8e2fb0
tree58f7349dd33432667375950a814d6c333122218a
parent62dd3466472780062f6f2f2596b83744c474465f
Rearrange packet list code

yank no longer returns a pointer.  No one was using it, so that
work was unnecessary.

Re-arrange the code in fr_packet_cmp() so that fewer comparisons
are necessary to disambiiguate packets.

Remove workaround for bug #35 in packet_entry_cmp().  It is
no longer necessary.

The result is a somewhat faster on in-memory performance tests.
But the callgrind output stil lshows large blocks of time
spent handling the packet lists.  Those could be optimized
some more.
src/include/packet.h
src/lib/packet.c