Skip to content

zackbloom/bloomhash

gh-pages
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
css
 
 
 
 
js
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Hexadecimal is a terrible way to express a UUID.

The most common type of UUID (4) is composed of 122 bits of random data + 6 bits of fluff.

Let's look at some of the other, better, ways we can express those 122 bits.

  • base64 - is expressable in urls and databases, and packs into significantly fewer characters. Base64 is a good choice if your putting your UUID in a url or storing it as a string
  • bitmap - If your language and database supports it, you can store the 122 random bits directly. This will be much smaller than storing the UUID as a string, and comparisons may be faster.
  • words - You can map the bit sequence to words. As words it's much easier to transcribe, compare and remember UUIDs.