Engineering Category: Lossless Wire & Structural Compression
Best Use in Production: Zero-allocation integer bit-packing, variable-length encoding, and stream framing for sovereign wire protocols.
When to Select This Capsule: Holds the #1 Equivalence Crown across 5 functionally identical implementations (fastest verified hardware _rdtsc). Sub-10-cycle hardware kernel (482141/200000 cyc/op); safe for ultra-hot per-sample or per-packet inner loops.
Snap-Circuit Wiring Role: Slice Ingress / Scanner Stage `(&[u8])->u64` — digests raw byte buffers into scalar tokens or checksums.
.text: 167 B (41 x86_64 insns)248 B)pub const fn fnv64_1a(bytes: &[u8]) -> u64 {
let mut hash = 0xcbf29ce484222325u64;
let mut i = 0;
while i < bytes.len() {
hash ^= bytes[i] as u64;
hash = hash.wrapping_mul(0x100000001b3);
i += 1;
}
hash
}
rustc -C opt-level=3 x86_64 Disassembly (167 B .text / 41 insns)fnv64_1a:
movabs rax, -3750763034362895579
test rsi, rsi
je .LBB7_6
movabs rcx, 1099511628211
mov edx, esi
and edx, 3
cmp rsi, 4
jae .LBB7_7
xor r8d, r8d
jmp .LBB7_4
.LBB7_7:
movabs r8, 9223372036854775804
and rsi, r8
xor r8d, r8d
.LBB7_8:
movzx r9d, byte ptr [rdi + r8]
xor r9, rax
imul r9, rcx
movzx eax, byte ptr [rdi + r8 + 1]
xor rax, r9
imul rax, rcx
movzx r9d, byte ptr [rdi + r8 + 2]
xor r9, rax
imul r9, rcx
movzx eax, byte ptr [rdi + r8 + 3]
xor rax, r9
imul rax, rcx
add r8, 4
cmp rsi, r8
jne .LBB7_8
test rdx, rdx
je .LBB7_6
.LBB7_4:
add rdi, r8
xor esi, esi
mov r8, rax
.LBB7_5:
movzx eax, byte ptr [rdi + rsi]
xor rax, r8
imul rax, rcx
inc rsi
mov r8, rax
cmp rdx, rsi
jne .LBB7_5
.LBB7_6:
ret
| Global Rank | Capsule & Domain | Hardware _rdtsc | Latency | Throughput | ELF .text | Ternary Vote | Author Aye |
|---|---|---|---|---|---|---|---|
| #2 | fnv64_1a (THIS CAPSULE) domain: smart-tree-x86_64 | id: 1dcf2f5ffc271a6420d1286e2c15f8fc | 482141/200000 cyc/op | 523321/800000 ns/op | 800000000/523321 ops/us | 167 B .text (41 insns) | + (1) | aye::Hue+Gemini(0+1)::x86_64 @ 432Hz |
| #1588 | fnv1a64_bytes domain: smart-tree | id: c1f44602e6ba0d212526cb037fbee8c0 | 700523/50000 cyc/op | 2669011/400000 ns/op | 400000000/2669011 ops/us | 167 B .text (41 insns) | + (1) | aye::Hue+Gemini(0+1)::x86_64 @ 432Hz |
| #1664 | fnv1a64 domain: smart-tree | id: bdd403ed1815b0c574bd37a178e17bcb | 3422669/200000 cyc/op | 815119/100000 ns/op | 100000000/815119 ops/us | 199 B .text (49 insns) | + (1) | aye::Hue+Gemini(0+1)::x86_64 @ 432Hz |
| #1666 | fnv1a domain: smart-tree | id: db9abc61f5cc35bcbea8b1f1855456d2 | 3421281/200000 cyc/op | 1629479/200000 ns/op | 200000000/1629479 ops/us | 199 B .text (49 insns) | + (1) | aye::Hue+Gemini(0+1)::x86_64 @ 432Hz |
| #1681 | fnv1a_64 domain: ayecast-x86_64 | id: 21e3d1405e1d9c5819b10af60bd01990 | 790411/20000 cyc/op | 4288537/400000 ns/op | 400000000/4288537 ops/us | 167 B .text (41 insns) | + (1) | aye::Hue+Gemini(0+1)::x86_64 @ 432Hz |