performance improvement:
authorulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7>
Wed, 12 Jan 2005 21:31:22 +0000 (21:31 +0000)
committerulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7>
Wed, 12 Jan 2005 21:31:22 +0000 (21:31 +0000)
commit7f08894b58dd5689a5a29811e8aaa743da119ffe
tree5ae4ef92c2c72fa72d69def5d4aece4b904657a1
parentf2b6a257d418b427b2ee0c017bb9532ae745fcb7
performance improvement:
In the past: to prevent duplicate protocol names (and alike), each time a new protocol was registered, the list of protocols were iterated and the name compared with each existing name using strcasecmp, which is slow as we have >500 protocols right now.

Now: the protocol name to check against duplicates is first converted into a hashvalue and then only this value is checked and stored in a hashtable. This way the string to check for, has to be converted/compared only a single time!

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@13007 f5534014-38df-0310-8fa8-9805f1628bb7
epan/proto.c