Return-Path: Delivered-To: apmail-hadoop-avro-dev-archive@minotaur.apache.org Received: (qmail 32973 invoked from network); 15 Jan 2010 17:33:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 15 Jan 2010 17:33:18 -0000 Received: (qmail 61304 invoked by uid 500); 15 Jan 2010 17:33:17 -0000 Delivered-To: apmail-hadoop-avro-dev-archive@hadoop.apache.org Received: (qmail 61238 invoked by uid 500); 15 Jan 2010 17:33:17 -0000 Mailing-List: contact avro-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: avro-dev@hadoop.apache.org Delivered-To: mailing list avro-dev@hadoop.apache.org Received: (qmail 61098 invoked by uid 99); 15 Jan 2010 17:33:17 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Jan 2010 17:33:17 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Jan 2010 17:33:15 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 9A8E6234C4BD for ; Fri, 15 Jan 2010 09:32:54 -0800 (PST) Message-ID: <1826465954.267911263576774632.JavaMail.jira@brutus.apache.org> Date: Fri, 15 Jan 2010 17:32:54 +0000 (UTC) From: "Thiruvalluvan M. G. (JIRA)" To: avro-dev@hadoop.apache.org Subject: [jira] Updated: (AVRO-328) Performance improvements Validating encoder/decoder for nested records In-Reply-To: <806609877.239261263480774622.JavaMail.jira@brutus.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/AVRO-328?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Thiruvalluvan M. G. updated AVRO-328: ------------------------------------- Status: Patch Available (was: Open) > Performance improvements Validating encoder/decoder for nested records > ---------------------------------------------------------------------- > > Key: AVRO-328 > URL: https://issues.apache.org/jira/browse/AVRO-328 > Project: Avro > Issue Type: Improvement > Components: java > Reporter: Thiruvalluvan M. G. > Assignee: Thiruvalluvan M. G. > Attachments: AVRO-328-test.patch, AVRO-328.patch > > > With nested records, Parser.pushProduction() gets called multiple times (once per record nesting). Since we do not have any events for beginning and end of records, it enhances the performance if we flatten the grammar, wherever possible. > The forthcoming patch does just that. > Try org.apache.avro.io.Perf -N > On my machine (HP laptop with Cygwin) the improvement is about 20%. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.