Ignore:
Timestamp:
Jul 3, 2006 10:08:47 PM (18 years ago)
Author:
bennylp
Message:

Various performance improvements in PJSIP: (1) optimizing for common case to minimize stricmp() calls (header names, method, URI schemes), (2) added functionality in scanner to parse and unescape in-place, (3) etc..

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsip/sip_msg.c

    r582 r583  
    197197    int i; 
    198198    for (i=0; i<PJ_ARRAY_SIZE(method_names); ++i) { 
    199         if (pj_stricmp(str, method_names[i])==0) { 
     199        if (pj_memcmp(str->ptr, method_names[i]->ptr, str->slen)==0 ||  
     200            pj_stricmp(str, method_names[i])==0)  
     201        { 
    200202            m->id = (pjsip_method_e)i; 
    201203            m->name = *method_names[i]; 
Note: See TracChangeset for help on using the changeset viewer.