ankurs/Hash-Table — pull request #2 by danieltahara (2012-02-23 15:55:27+00:00)
Title: Updates

Hi,

I fixed the table resizing, changing it to a one pass algorithm as you had noted to do at some point. The one thing that does change is the error-handling for an empty table (i.e. the use of the "count" variable), which is now at the end. My question there would be why it is actually necessary; couldn't you just use table->key_count?

A couple of other things I did -- changed a couple of for loop bounds into local variables to increase efficiency/decrease the number of pointer dereferences.

Hope it's all good!

Daniel