thrift-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bryan Duxbury <bryan.duxb...@gmail.com>
Subject Re: Thrift serialization compression
Date Wed, 13 Jun 2012 23:42:25 GMT
Some Thrift languages support compressed transports. However, Serializer is
just for getting the raw bytes. You are free to use any other compression
algo you'd like on your serialized objects, though.

There is no way to thrift-serialize arbitrary Ruby objects or hashes.
Thrift is big on schema.

On Mon, Jun 11, 2012 at 5:03 AM, Anand Hegde <anandghegde@gmail.com> wrote:

> I am using the thrift ruby gem and am doing the following
>
> serializer = Thrift::Serializer.new()
>
>                binary_string=serializer.serialize(my_thrift_obj)
>
> and I am storing this binary_string in a file, but I noticed there is no
> compression at all. Is there any way I can compress my_thrift_obj while
> serializing?
>
> Also, is there a way to serialize arbitrary ruby hashes to thrift objects?
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message