instead of hashpjw() and by using power of two sizes of hash tables (this saves the % and isn't necessary with a good hash function). Please try this patch.