Performance improvements for hash function.
Merge pull request #84 from stackmob/b/performance

Performance improvements for hash function.