Return-Path: X-Original-To: apmail-directory-dev-archive@www.apache.org Delivered-To: apmail-directory-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 46876905C for ; Fri, 16 Mar 2012 02:38:44 +0000 (UTC) Received: (qmail 16025 invoked by uid 500); 16 Mar 2012 02:38:44 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 15981 invoked by uid 500); 16 Mar 2012 02:38:43 -0000 Mailing-List: contact dev-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Apache Directory Developers List" Delivered-To: mailing list dev@directory.apache.org Received: (qmail 15953 invoked by uid 99); 16 Mar 2012 02:38:43 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Mar 2012 02:38:43 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of ayaselcuk@gmail.com designates 74.125.82.178 as permitted sender) Received: from [74.125.82.178] (HELO mail-we0-f178.google.com) (74.125.82.178) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Mar 2012 02:38:37 +0000 Received: by wera13 with SMTP id a13so4611928wer.37 for ; Thu, 15 Mar 2012 19:38:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=x27gYJAKSae7oZ2BIDggb0p98RoFJ4jtK6SPZrozzsk=; b=mvRrVbl/U1tNWJStf16qXzEGTwqp30eMT3DnzjVQNN5qSIOYeBFVPX8ld8kgbg+gr4 1s4xLU8XNcL7M36foqNHhOIjF1gNFiN2krb/K3xknN5FQB6ZCMFXJ1R5AO4uOmrX7v7n sd6bL5E1GRbyFR7WeixzYW96F1KJQ9JdfsF88DmOXiZXDVILsghTsvT24J9BABN3cGl5 jgrfwrBO7SFdWugeh/kIo5qsvquynn2CSuhHJU3pOtTlW9yEPGexByGZseOOaHvCN7o8 LkblA0/ITcvZrvKDlUPkAi0atu0Rsr2CwArhvB6esaYIKdoyIVgUBl6cnXTX0Ni3moCM qa7A== MIME-Version: 1.0 Received: by 10.180.95.1 with SMTP id dg1mr2365066wib.21.1331865497197; Thu, 15 Mar 2012 19:38:17 -0700 (PDT) Received: by 10.227.32.82 with HTTP; Thu, 15 Mar 2012 19:38:17 -0700 (PDT) In-Reply-To: <4F61F89D.9010507@gmail.com> References: <4F61F89D.9010507@gmail.com> Date: Thu, 15 Mar 2012 19:38:17 -0700 Message-ID: Subject: Re: [TxnBranch] Serialization improvments From: Selcuk AYA To: Apache Directory Developers List , elecharny@apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org On Thu, Mar 15, 2012 at 7:11 AM, Emmanuel L=E9charny = wrote: > Hi, > I continued to review the serialization of the DataChangeContainer > structure, and found that we call writeObject() a couple of times : > - in the ParentIdAndRdn class to serialize the UUID. It's easy to replace > this call > - in the IndexChange, for keys which are not String, byte[], Long. I adde= d > two cases : UUID and ParentIdAndRdn so that we can now use the > read/writeExternal methods instead > > I also have a modifciation related to the Enums : I find the way Selcuk i= s > dealing with them way better than mine (ie, use the ordinal() method inst= ead > of inject values the way I did). So I reverted my changes to stick with w= hat > Selcuk did > > Those changes are purely internal and have no impact on the way the serve= r > works. Tests are passing. > > Here is the proposed patch : http://pastebin.com/UDRF3qPa looks good, Would be good to add some test for deserializing these objects as we dont have code to excersize them. > > -- > Regards, > Cordialement, > Emmanuel L=E9charny > www.iktek.com > thanks Selcuk