edwardhotchkiss/short — pull request #7 by thinkroth (2011-12-22 15:40:44+00:00)
Title: Another performance optimization.

Removed checkExists, tries to write first, recreates hash if it's
taken. Significantly faster now!

There's 3.5 trillion possibile hashes, so it's very unlikely there would ever be a duplicate. It's much faster to try to write and then regenerate a new hash on the rare occasion there's a duplicate, rather than checking uniqueness of each first.