Improvement of SIP header parsing via static search table
Cui Zai-hui · Jisuanji gongcheng yu sheji · 2010
To enhance the performance of SIP header detecting process during the SIP message parsing with the consideration of the design principle of flexibility of SIP protocol,a detailed analysis on efficiency of string comparison to determine the type of SIP header which may introduce performance issue,shows that traditional string operation should be replaced with some faster methods.A new method is proposed based on analyses of the basic procedure of parsing SIP header in line model and practices the open source Gperf for generating perfect hash function.And then this method leverages the searching static hash table of SIP header names for determining SIP header type to improve the parsing performance of SIP decoder and ability of SIP header extension.