fastdigest: Fast, memory constant hashing of R objects

Description Usage Arguments Details Author(s) References See Also

View source: R/fastdigest.R

Description

Fast, memory constant hashing of R objects

Usage

1
fastdigest(obj, ref_serializer = NULL)

Arguments

obj

The object to generate a hash digest for

ref_serializer

(optional) A serializer for reference-style objects, see serialize

Details

obj will be hashed using R's internal serialization logic with a custom target which applies applying Jenkins' SpookyHash (v2) in a streaming fashion. This avoids (ever) copying the data out of the R object itself, providing both speed and memory constancy.

It also guarantees that the "representation" of the R object being hashed is the same as the serialized version would be, if created.

Author(s)

Gabriel Becker

References

Jenkins, B. (2012). SpookyHash: a 128-bit noncryptographic hash. http://burtleburtle.net/bob/hash/spooky.html.

See Also

serialize


gmbecker/fastdigest documentation built on Feb. 22, 2018, 3:06 p.m.