LionHear7 / opendpi

Automatically exported from code.google.com/p/opendpi
GNU Lesser General Public License v3.0
0 stars 0 forks source link

Patch for /trunk/src/lib/protocols/mgcp.c #29

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
change first protocol letter multiple comparisons to strpbrk; this makes code 
more readable and could increase some performance
change order of checks in whole command comparisons; NTFY is the most frequent 
message so this will reduce memcmp calls - increase performance
change search for MGCP string inside packet; code more readable and without 
using extra variables and loops probably faster (depend on implementation of 
strstr)

Original issue reported on code.google.com by mpasin...@gmail.com on 22 Oct 2012 at 6:15

Attachments: