https://github.com/supercmmetry/bitio
A simple and fast bitio library for c++
https://github.com/supercmmetry/bitio
benchmark bitio cpp filesystem io memory-buffers read-write
Last synced: 11 months ago
JSON representation
A simple and fast bitio library for c++
- Host: GitHub
- URL: https://github.com/supercmmetry/bitio
- Owner: supercmmetry
- License: bsd-3-clause
- Created: 2020-07-22T04:02:00.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-02-07T05:37:28.000Z (about 5 years ago)
- Last Synced: 2025-03-04T17:48:42.123Z (about 1 year ago)
- Topics: benchmark, bitio, cpp, filesystem, io, memory-buffers, read-write
- Language: C++
- Homepage:
- Size: 1 MB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# bitio

A simple and fast bitio library for C++
## Features:
- Very low memory overhead.
- Support for in-memory buffers.
- Support for read, write and seek in bit domain.
- Added seek_to() for seeking to a specific bit from SOF.
- Uses a temporary memory buffer to reduce file operations.
## Limitations:
- Not thread-safe
## Steps to use:
- Add this project as a submodule using `git submodule add git@github.com:supercmmetry/bitio`
## Benchmarks:
This benchmark was taken on Arch Linux (x86_64), Intel i7-9750H, 1TB HDD (SATA 7200rpm) with a 128 KB bitio buffer.
| Operation | Speed (Megabytes per second) |
| ----------- | ----------- |
| Read | 10.5 |
| Write | 6.7 |
| Seek (SEEK_CUR) | 6.1 |
| Seek To (SEEK_SET) | 58.6 |