RapidHash functions in the Hashfuncs DuckDB extension
Function category
RapidHash
1 function[RapidHash](https://github.com/Nicoshev/rapidhash) is purpose-built for raw 64-bit throughput while keeping competitive distribution quality. Frequently the fastest published 64-bit non-cryptographic hash on x86_64 — reach for [`rapidhash`](#rapidhash) when [`xxh3_64`](#xxh3_64)'s speed isn't quite enough.
Signature
2 overloaded forms · click to inspectArguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
value
|
Type
ANY
|
Mode Positional | Description |
Arguments (Positional)
| Argument | Type | Mode | Description |
|---|---|---|---|
Argument
value
|
Type
ANY
|
Mode Positional | Description |
Argument
seed
|
Type
UBIGINT
|
Mode Positional | Description |
Description
RapidHash — a 64-bit non-cryptographic hash designed for exceptional speed while keeping competitive distribution quality. Frequently the fastest 64-bit hash in published benchmarks on modern x86_64.
Reach for rapidhash when xxh3_64's throughput isn't quite enough, or when most of your hashed inputs are very short integers and you want the lowest per-call latency. As with the rest of this extension, this is not cryptographically secure — use crypto for digests and signatures.
SELECT rapidhash('hello world');
Output
| rapidhash('hello world') |
|---|
| 3397907815814400320 |
SELECT rapidhash('hello world', 2023);
Output
| rapidhash('hello world', 2023) |
|---|
| 11789095433300219990 |