toyboot4e / ac-library-hs

[WIP] Haskell port of ac-library.
Creative Commons Zero v1.0 Universal
4 stars 0 forks source link

`std::vector<bool>` corresponds to a vector of `Bit` #26

Closed toyboot4e closed 3 weeks ago

toyboot4e commented 3 weeks ago

They are specialized and are 8 times space-efficient to a vector of Bool. So always use bitvec (unboxed vector of Bit).

https://en.cppreference.com/w/cpp/container/vector_bool

toyboot4e commented 3 weeks ago

Use bitvec even if the API becomes harder to use! That's also the case of C++.