Fast 2D matrix of bits

bearophile bearophileHUGS at lycos.com
Mon Sep 19 15:19:19 PDT 2011


In Phobos (beside fast 2D/3D/4D vectors) I'd like a fast 2D matrix of bits. I have added an implementation in attach in this enhancement request:

http://d.puremagic.com/issues/show_bug.cgi?id=6697

It's a common enough data structure, and despite being simple it's not obvious, especially if you want it to be fast. A naive implementation that uses a BitArray is not fast enough.

Bye,
bearophile


More information about the Digitalmars-d mailing list