Yeah guys, why no vector<bool> mentions?
Or in this case:
Code:
vector< vector< vector<bool> > >
Yes I know that the explicit specialisation is a hack that doesn't work exactly the same as every other data type, but for
most purposes it works fine.
I'm sure boost has something better though.
I presume this is for voxel data? Have you considered compressing it? (beyond using 1-bit per voxel of course)
I mean you could probably use something like RLE to compress it in such a way that you can still quickly determine the status of an individual voxel. Reducing the memory usage by even say a factor of four would probably still provide a speed increase after decompression, as memory would probably be your bottleneck. Of course it depends on how often you write to it. If it is read in and then not changed, doing this should be sweet as!