Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion arrays??

Received: by 10.91.154.18 with SMTP id g18mr787335ago.7.1255019617061;
        Thu, 08 Oct 2009 09:33:37 -0700 (PDT)
Received: by 10.91.154.18 with SMTP id g18mr787334ago.7.1255019617019;
        Thu, 08 Oct 2009 09:33:37 -0700 (PDT)
Return-Path: <henner.zel...@googlemail.com>
Received: from mail-gx0-f219.google.com (mail-gx0-f219.google.com [209.85.217.219])
        by gmr-mx.google.com with ESMTP id 24si2903ywh.3.2009.10.08.09.33.35;
        Thu, 08 Oct 2009 09:33:36 -0700 (PDT)
Received-SPF: pass (google.com: domain of henner.zel...@googlemail.com designates 209.85.217.219 as permitted sender) client-ip=209.85.217.219;
Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of henner.zel...@googlemail.com designates 209.85.217.219 as permitted sender) smtp.mail=henner.zel...@googlemail.com; dkim=pass (test mode) header...@googlemail.com
Received: by mail-gx0-f219.google.com with SMTP id 19so1931317gxk.5
        for <protobuf@googlegroups.com>; Thu, 08 Oct 2009 09:33:35 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=googlemail.com; s=gamma;
        h=domainkey-signature:mime-version:sender:received:in-reply-to
         :references:date:x-google-sender-auth:message-id:subject:from:to:cc
         :content-type:content-transfer-encoding;
        bh=5t5USFa29i29WX+7VF8eaW5Wlh5mr061e0cqH+gaX4U=;
        b=CbMQLveBIWU5bxKvtJDsNFLvxUswa/Qlx3F2L+l/F5D5Jr6JMgFS6zVc3PM/5VJ62+
         PYWqBUF4m6L+bVDP0qs0RVDdy/Qs81fIac8gL7+WEGFZCMec5kLuOM0kVaVK6U4RFqNz
         IBrSdxvql+ckA7VAMSDU4C0oLsKePxq5vjfCo=
DomainKey-Signature: a=rsa-sha1; c=nofws;
        d=googlemail.com; s=gamma;
        h=mime-version:sender:in-reply-to:references:date
         :x-google-sender-auth:message-id:subject:from:to:cc:content-type
         :content-transfer-encoding;
        b=Xsu40XqH/R9E8NXkachWQ4f+tJ0CU7T+ZF8MLkLtspdVQDhRszyA0LKK8m4mI87VFL
         nZq8Sut9i42M4wfojrBQiQgx+AcxnhZzFxTRo3aK2NC9i1cD44Cm51Nw5QFjZUWJRwWR
         K6JI1eom3nkWateuO8tiKdK0xjI5n7MN8gz70=
MIME-Version: 1.0
Sender: henner.zel...@googlemail.com
Received: by 10.90.210.11 with SMTP id i11mr790562agg.94.1255019615905; Thu, 
	08 Oct 2009 09:33:35 -0700 (PDT)
In-Reply-To: <9eed3e2f-707e-4ade-a5c4-bc9413500...@g1g2000vbr.googlegroups.com>
References: <7265fb14-5fb7-47fe-ac3c-5fea62d32...@p23g2000vbl.googlegroups.com>
	 <adaae6ff0910080846h6b7698f3j2cf0308f60591...@mail.gmail.com>
	 <050d9855-9941-4abe-8e32-971b8d8fe...@g23g2000vbr.googlegroups.com>
	 <9eed3e2f-707e-4ade-a5c4-bc9413500...@g1g2000vbr.googlegroups.com>
Date: Thu, 8 Oct 2009 09:33:35 -0700
Message-ID: <952789670910080933q555341a6v14ee601f056d3...@mail.gmail.com>
Subject: Re: arrays??
From: Henner Zeller <h.zel...@acm.org>
To: sergei175 <sergei...@googlemail.com>
Cc: Protocol Buffers <protobuf@googlegroups.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Hi,

> =A0This is exactly what I've done before putting arrays into a string.
> =A0When I've implemented arrays via repeated fields, the program was
> even slower,
> =A0and the file size was too large (compare to Java serialization
> mechanism+ zip).

If you put the values in a string and do you own array management on
top as compared to using a repeated field with packed option, there
should not be a significant difference because it is essentially the
same.
Protobufs don't come with a compression, so if you compare the sizes,
you need to compare compressed Java serialization with compressed
proto serialization.

If you provide an example of what you want to do and what are your
current solutions you compare, people on this list might be able to
help.

-h