pike.git / src / stralloc.c

version» Context lines:

pike.git/src/stralloc.c:657:    num_strings++;    UNLOCK_BUCKET(hval);       if(num_strings > MAX_AVG_LINK_LENGTH * htable_size) {    stralloc_rehash();    }      #ifndef HASH_PREFIX    /* These heuristics might require tuning! /Hubbe */    if((need_more_hash_prefix_depth > MAX_AVG_LINK_LENGTH * 4) || -  (need_new_hashkey_depth > MAX_AVG_LINK_LENGTH * 16)) +  (need_new_hashkey_depth > MAX_AVG_LINK_LENGTH * 128))    {    /* Changed heuristic 2005-01-17:    *    * Increase HASH_PREFIX if there's some bucket containing    * more than MAX_AVG_LINK_LENGTH * 4 strings that are longer    * than HASH_PREFIX.    * /grubba    *    * Changed heuristic 2011-12-30:    *