module Sprockets::DigestUtils

def digest(obj)

Returns a String digest of the object.

obj - A JSON serializable object.

wicked fast. Microbenchmarks away!
This is used for generating cache keys, so its pretty important its

Internal: Generate a hexdigest for a nested JSON serializable object.
def digest(obj)
  build_digest(obj).digest
end