markmandel/Squabble — Issue #14: Use a hash for each combination and store that in the cookie
Author: markmandel
Created: 2011-11-14 11:46:29+00:00
State: open
Labels: enhancement

Work out a way to repeatable way to get the same hash for a given combination (md5 of JSON possibly, or even toString()).

In the cookie, just store the hash.

In squabble, then have a simple hash map of each of the combinations, which makes lookup super easy and fast.

Deserialising which combination they have is now very simple and easy as well, as it's just a struct lookup.

This will also result in smaller cookies.