Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8114843
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T03:16:41+00:00 2026-06-06T03:16:41+00:00

I am using the thrift ruby gem and am doing the following serializer =

  • 0

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?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T03:16:43+00:00Added an answer on June 6, 2026 at 3:16 am

    I got the following reply from the thrift author Mark Slee.

    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.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

using (var file_stream = File.Create(users.xml)) { var serializer = new XmlSerializer(typeof(PasswordManager)); serializer.Serialize(file_stream, this); file_stream.Close();
I serialized a 116k file to thrift binary format using the compact protocol but
My group is trying to build a server using Apache Thrift but we are
I am using the Evernote gem in my Ruby on Rails app. I am
Using Rails 3.2.0.rc2 and ruby 1.9.3p0 In app/views/requests/_form.html.erb I have the following code for
I'm using a PHP-JAVA bridging using Apache thrift. A java server file, it is
I am new to Thrift : http://thrift.apache.org/ I am using CentOS, and maybe install
I'm writing a service using Thrift and need to apply some tests to ensure
I am a newbie in Python. I try to work with server using Thrift
Using LINQ on collections, what is the difference between the following lines of code?

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.