Return-Path: X-Original-To: apmail-thrift-user-archive@www.apache.org Delivered-To: apmail-thrift-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A2EDDCE5C for ; Mon, 11 Jun 2012 12:04:21 +0000 (UTC) Received: (qmail 78864 invoked by uid 500); 11 Jun 2012 12:04:21 -0000 Delivered-To: apmail-thrift-user-archive@thrift.apache.org Received: (qmail 78623 invoked by uid 500); 11 Jun 2012 12:04:17 -0000 Mailing-List: contact user-help@thrift.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@thrift.apache.org Delivered-To: mailing list user@thrift.apache.org Received: (qmail 78589 invoked by uid 99); 11 Jun 2012 12:04:16 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Jun 2012 12:04:16 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FSL_RCVD_USER,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of anandghegde@gmail.com designates 209.85.214.42 as permitted sender) Received: from [209.85.214.42] (HELO mail-bk0-f42.google.com) (209.85.214.42) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Jun 2012 12:04:09 +0000 Received: by bkcik5 with SMTP id ik5so7734023bkc.1 for ; Mon, 11 Jun 2012 05:03:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=JorXK5yV0WGnkK6b/8hgxOjjYYRGf0emPzWbMUG9d1g=; b=KjXH44DUZenZD8KB+F6eR+dsSlN1G5CmrvcdiQ6+94cLVs/fUxqRoCb5BMKRVHPr9b mcXtLS9oOOcy8XcizmtMYJFTWt7/qam+OB8FCk4DmY/TsOMhqzUA346Zi6Ynp1P1AAkI QbpT+FxmHCfeTlqCz8n/BGYvAGRdpz+Dv5jJLBUPHgSl82Y+R5bN+TUmRpeAYJpG84dp Jzppnq82INZ51s56US8Q5mxvWJJ6wSreCVVs5PxduJGnafzvdXxtcKA+RhhEejZ2YBg3 UM2p5ci7cfVqfx7BQ9eE0bGlA3g4bfAX2Ws8V2c/A0RX9Vb7ewAzRYdWBmGx9BCEwFMW NoyA== MIME-Version: 1.0 Received: by 10.204.128.200 with SMTP id l8mr10315590bks.94.1339416228517; Mon, 11 Jun 2012 05:03:48 -0700 (PDT) Received: by 10.204.165.4 with HTTP; Mon, 11 Jun 2012 05:03:48 -0700 (PDT) Date: Mon, 11 Jun 2012 17:33:48 +0530 Message-ID: Subject: Thrift serialization compression From: Anand Hegde To: user@thrift.apache.org Content-Type: multipart/alternative; boundary=00151747be5881d94f04c23124da X-Virus-Checked: Checked by ClamAV on apache.org --00151747be5881d94f04c23124da Content-Type: text/plain; charset=ISO-8859-1 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? --00151747be5881d94f04c23124da--