Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/Sahnvour/zig-containers

A container library for Zig.
https://github.com/Sahnvour/zig-containers

containers zig

Last synced: 2 months ago
JSON representation

A container library for Zig.

Awesome Lists containing this project

README

        

# A set of containers for Zig

May turn useful, or not.

This is mostly a testbed for a few containers, especially `hashmap.zig` which ended up in the standard library.

# Benchmarks

A couple benchmarks are available (and can be tinkered with):
```shell
zig build bench -Drelease-fast
```
and more interestingly, a simplified implementation in Zig of [this one](https://github.com/martinus/map_benchmark/) which ended up in [gotta go fast](https://github.com/ziglang/gotta-go-fast/tree/master/benchmarks/std-hash-map).
```shell
zig build martinus -Drelease-fast
```

The `martinus` benchmark directly uses the standard library's hashmap, and supports `-Doverride-lib-dir=path/to/lib` for in-place testing.