Skip to content

Add support for much faster hash algorithms (e.g. xxHash) #4640

@rico-chet

Description

@rico-chet

Currently, SCons only supports hash algorithms which are provided by the hashlib, but those are rather slow (in the ballpark of 1-2 GB/s).

There are much faster alternatives available, e.g. xxHash which runs at the speed of RAM (an order of magnitude faster than MD5, up to ~30 times, according to xxHash developers). xxHash is readily available as a C and Python3 library via Debian repositories, so e.g. Ubuntu/Debian users can install it with ease. The hash is not cryptographic, but it's acceptable according to the comments I found in SCons code.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions