gtopt/memory_compress.hpp file

In-memory compression/decompression for low_memory mode.

Provides a unified API for compressing/decompressing byte buffers using zstd, lz4, or snappy — whichever are available at build time. Used by the low_memory SDDP mode to compress saved FlatLinearProblem data in memory.

Namespaces

namespace gtopt

Classes

struct gtopt::CompressedBuffer
Compressed buffer with metadata for round-trip compression.
struct gtopt::CompressionStatsSample
class gtopt::FlatLpDedupRegistry