The compact protocol doesn't do compression, the word compact refers to the way it encodes structure and type metadata.
Thrift is intended for strongly-typed structured data serialization, not compression. A file is already serialized - it sounds like what you really want is to compress serialized data. Would recommend using zlib or gzip for that. ________________________________________ From: Anand Hegde [[email protected]] Sent: Tuesday, June 12, 2012 10:15 PM To: [email protected] Subject: Compression on serialization I serialized a 116k file to thrift binary format using the compact protocol but even after serializing, the size is 116K. Isnt the serializer supposed to reduce the file size? The file contains only strings, if that info helps.
