Changeset 506 for trunk/xcache.h


Ignore:
Timestamp:
2008-01-05T05:45:48+01:00 (6 years ago)
Author:
moo
Message:

optimized function_table/class_table by caching hash value

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/xcache.h

    r500 r506  
    141141       zend_hash_add(ht, arKey, nKeyLength, pData, nDataSize, pDest) 
    142142 
     143#   define zend_u_hash_quick_add(ht, type, arKey, nKeyLength, h, pData, nDataSize, pDest) \ 
     144       zend_hash_quick_add(ht, arKey, nKeyLength, h, pData, nDataSize, pDest) 
     145 
    143146#   define zend_u_hash_update(ht, type, arKey, nKeyLength, pData, nDataSize, pDest) \ 
    144147       zend_hash_update(ht, arKey, nKeyLength, pData, nDataSize, pDest) 
     148 
     149#   define zend_u_hash_quick_update(ht, type, arKey, nKeyLength, h, pData, nDataSize, pDest) \ 
     150       zend_hash_quick_update(ht, arKey, nKeyLength, h, pData, nDataSize, pDest) 
    145151 
    146152#   define zend_u_hash_find(ht, type, arKey, nKeyLength, pData) \ 
     
    227233    zstr      key; 
    228234    zend_uint key_size; 
     235    ulong     h; 
    229236    xc_cest_t cest; 
    230237    int       oplineno; 
     
    239246    zstr      key; 
    240247    zend_uint key_size; 
     248    ulong     h; 
    241249    zend_constant constant; 
    242250} xc_constinfo_t; 
     
    250258    zstr      key; 
    251259    zend_uint key_size; 
     260    ulong     h; 
    252261    zend_function func; 
    253262} xc_funcinfo_t; 
     
    261270    zstr       key; 
    262271    zend_uint  key_len; 
     272    ulong      h; 
    263273} xc_autoglobal_t; 
    264274/* }}} */ 
Note: See TracChangeset for help on using the changeset viewer.