Skip to content

mecfs_bio.build_system.rebuilder.verifying_trace_rebuilder.tracer.imohash

Classes:

  • ImoHasher

    Based on : https://github.com/kalafut/py-imohash/blob/master/imohash/imohash.py

ImoHasher

Bases: Tracer

Based on : https://github.com/kalafut/py-imohash/blob/master/imohash/imohash.py Quick approximate hash that subsamples large files

Methods:

Attributes:

hash_constructor instance-attribute

hash_constructor: HashConstructor

hash_name instance-attribute

hash_name: str

sample_size class-attribute instance-attribute

sample_size: int = 16 * 1024

sample_threshold class-attribute instance-attribute

sample_threshold: int = 128 * 1024

with_xxhash_128 classmethod

with_xxhash_128()
Source code in mecfs_bio/build_system/rebuilder/verifying_trace_rebuilder/tracer/imohash.py
@classmethod
def with_xxhash_128(cls):
    return cls(hash_constructor=xxhash.xxh3_128, hash_name="xxh3_128")

with_xxhash_32 classmethod

with_xxhash_32()
Source code in mecfs_bio/build_system/rebuilder/verifying_trace_rebuilder/tracer/imohash.py
@classmethod
def with_xxhash_32(cls):
    return cls(hash_constructor=xxhash.xxh32, hash_name="xxh32")