Lua bindings to compress torch objects with snappy.