Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/Sahnvour/zig-containers
- Owner: Sahnvour
- Created: 2019-04-16T20:57:56.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2021-05-12T18:22:53.000Z (over 3 years ago)
- Last Synced: 2024-08-03T23:17:08.519Z (6 months ago)
- Topics: containers, zig
- Language: Zig
- Size: 59.6 KB
- Stars: 11
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-zig - Sahnvour/zig-containers
- awesome-zig - zig-containers🗒️A container library for Zig
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.