Branch: Tag:

2010-11-13

2010-11-13 23:19:15 by 0

Disallow threads during hashing of small strings (current threshold is 1 MB).
This change improves ApacheBench numbers ~20% for a Roxen benchmark on a
quad-core Core i5.

285:    char *hash;    NO_WIDE_STRING(pw);    NO_WIDE_STRING(salt); -  THREADS_ALLOW(); -  hash = pike_crypt_md5(pw->len, pw->str,salt->len, salt->str); -  THREADS_DISALLOW(); +  hash = pike_crypt_md5(pw->len, pw->str, salt->len, salt->str);    push_text(hash);   }