https://github.com/sevagh/ringworm
some Go ringbuffers
https://github.com/sevagh/ringworm
circular-buffer ringbuffer
Last synced: 10 months ago
JSON representation
some Go ringbuffers
- Host: GitHub
- URL: https://github.com/sevagh/ringworm
- Owner: sevagh
- License: mit
- Created: 2019-11-30T06:10:09.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-12-05T23:02:24.000Z (about 6 years ago)
- Last Synced: 2025-04-05T01:01:52.889Z (10 months ago)
- Topics: circular-buffer, ringbuffer
- Language: Go
- Size: 14.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Two ringbuffers written in Go.
### ringbuffer1
[ringbuffer1](./ringbuffer1) stores bytes. It features:
1. indexing strategy learned from https://www.snellman.net/blog/archive/2016-12-13-ring-buffers/
2. https://github.com/bmkessler/fastdiv for faster modulo on the read/write indices
2. https://github.com/google/gofuzz and https://github.com/flyingmutant/rapid for testing
### ringbuffer2
[ringbuffer2](./ringbuffer2) stores interfaces. The API is inspired by https://github.com/armon/circbuf