You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
G3SkyMap mask objects, which are essentially std::vector<bool> objects with some extra features, are packed on disk as one byte per element, rather than 1 bit per element as one would expect. This is rather inefficient, especially when masks are used as input arguments to pipeline modules (and therefore end up in memory-intensive G3PipelineInfo frames all over the place).
The text was updated successfully, but these errors were encountered:
Cereal, by default, serializes std::vector<bool> with one byte per bool.
Since only one bit is relevant, this uses eight times the disk space that
is strictly needed. Pack the bits instead.
Closes#107.
G3SkyMap mask objects, which are essentially
std::vector<bool>
objects with some extra features, are packed on disk as one byte per element, rather than 1 bit per element as one would expect. This is rather inefficient, especially when masks are used as input arguments to pipeline modules (and therefore end up in memory-intensiveG3PipelineInfo
frames all over the place).The text was updated successfully, but these errors were encountered: