Return-Path: Delivered-To: apmail-abdera-dev-archive@www.apache.org Received: (qmail 61411 invoked from network); 14 Jan 2011 07:58:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 14 Jan 2011 07:58:16 -0000 Received: (qmail 4806 invoked by uid 500); 14 Jan 2011 07:58:16 -0000 Delivered-To: apmail-abdera-dev-archive@abdera.apache.org Received: (qmail 3313 invoked by uid 500); 14 Jan 2011 07:58:13 -0000 Mailing-List: contact dev-help@abdera.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@abdera.apache.org Delivered-To: mailing list dev@abdera.apache.org Received: (qmail 2481 invoked by uid 99); 14 Jan 2011 07:58:11 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Jan 2011 07:58:11 +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.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Jan 2011 07:58:08 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id p0E7vkO9010419 for ; Fri, 14 Jan 2011 07:57:46 GMT Message-ID: <25182431.364331294991866456.JavaMail.jira@thor> Date: Fri, 14 Jan 2011 02:57:46 -0500 (EST) From: =?utf-8?Q?Olve_S=C3=A6ther_Hansen_=28JIRA=29?= To: dev@abdera.apache.org Subject: [jira] Commented: (ABDERA-277) Excessive calls to flush() on the Writer responsible for writing JSONStream data.- In-Reply-To: <5592882.186991294317405471.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/ABDERA-277?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1298= 1664#action_12981664 ]=20 Olve S=C3=A6ther Hansen commented on ABDERA-277: ------------------------------------------- This looks good and I have the source here, but when will 1.1.2 hit the ma= ven repositories? > Excessive calls to flush() on the Writer responsible for writing JSONStre= am data.- > -------------------------------------------------------------------------= --------- > > Key: ABDERA-277 > URL: https://issues.apache.org/jira/browse/ABDERA-277 > Project: Abdera > Issue Type: Bug > Affects Versions: 0.4.0, 1.0, 1.1, 1.1.1 > Environment: Seen on Jetty7 and in local unit-tests. > Reporter: Olve S=C3=A6ther Hansen > Priority: Critical > Attachments: Removed_unnecessary_calls_to_flush()_on_the_Writer_i= nstance_writing_the_JSONStream_.patch > > > When I am creating a feed with a lot of entries, say 2-3000, the JSON ser= ialization is horribly slow. XML serialisation is very fast in comparison. > I am using Abdera together with Jersey, via Jersey integration.=20 > Using curl and Jersey content-negotiation the xml-file downloaded instant= ely. The json-file took as much as a minute and a half, and as little as 22= seconds.=20 > Some investigation lead me to the excessive calls to flush in the JSONStr= eam-class. > https://github.com/apache/abdera/blob/abdera-1.1.1/extensions/json/src/ma= in/java/org/apache/abdera/ext/json/JSONStream.java > My proposal for a fix is in the attatched patch. > I hope someone can put this in as soon as possible. I will have to make a= local "fork" for this fix until it is released through proper channels.=20 --=20 This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.