fasthash

High-performance hashing functions written in Zig

Files

FileDescription
kit.tomlPackage manifest with metadata and dependencies
src/main.kitFNV-1a, DJB2, SDBM, rolling, and XOR hash functions
zig/hash.zigHash algorithm implementations in Zig
zig/kit_ffi.zigKit FFI helper functions
tests/fasthash.test.kitAPI structure and dispatch function tests
LICENSEMIT license file

Dependencies

No Kit package dependencies.

Installation

kit add gitlab.com/kit-lang/packages/kit-fasthash.git

Usage

import Kit.Fasthash

License

MIT License - see LICENSE for details.

Exported Functions & Types

fnv1a

String -> Int

rolling

String -> Int

djb2

String -> Int

sdbm

String -> Int

xor

String -> Int

combine

Int -> Int -> Int

version

() -> Int

hash

String -> String -> Int