No description
Find a file
Andre von Houck dfe6884863
Merge pull request #23 from treeform/overflow
Fix a bug were firstFalse could return things outside of the array.
2025-11-25 13:18:39 -08:00
.github/workflows Use standard GitHub actions form Nim Template. 2025-09-19 21:35:50 -07:00
src Fix a bug were firstFalse could return things outside of the array. 2025-11-25 13:15:05 -08:00
tests rename benchmark -> bench 2022-07-24 12:43:11 -05:00
.gitignore add .gitignore 2020-07-09 00:04:28 +00:00
bitty.nimble up min version 2024-01-17 11:06:43 -08:00
LICENSE remove copypaste error 2021-03-02 13:38:14 -06:00
README.md Add atlas install instructions. 2024-01-17 11:58:49 -08:00

Bitty - Tightly packed 1d and 2d bit arrays.

  • atlas use bitty
  • nimble install bitty

Github Actions

API reference

This library has no dependencies other than the Nim standard library.

About

This library gives you 1d and 2d bit arrays and operations to perform on them.

If you have type like seq[bool] in your code, switching to bit arrays should improve your memory usage by 8x. Using tightly packed bit arrays can also improve cache performance if you are doing a lot of sequential read access on a large amount of bits. But tightly packed bit arrays can also be slower if you are doing a lot of random write access. Always measure!