class Sprockets::Index

def file_digest(pathname)

Cache calls to `file_digest`
def file_digest(pathname)
  key = pathname.to_s
  if @digests.key?(key)
    @digests[key]
  else
    @digests[key] = super
  end
end