It's basic algorithm implementation so it doesn't ensure being efficient. Compressed data is encoded in Base94-like encoding
struct { uint16_t offset; uint16_t length; char next_char; }