Return-Path: Delivered-To: apmail-abdera-dev-archive@www.apache.org Received: (qmail 6030 invoked from network); 3 Feb 2011 18:10:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 3 Feb 2011 18:10:56 -0000 Received: (qmail 42958 invoked by uid 500); 3 Feb 2011 18:10:56 -0000 Delivered-To: apmail-abdera-dev-archive@abdera.apache.org Received: (qmail 41654 invoked by uid 500); 3 Feb 2011 18:10:53 -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 41630 invoked by uid 99); 3 Feb 2011 18:10:52 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Feb 2011 18:10:52 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Feb 2011 18:10:50 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 767F618C087 for ; Thu, 3 Feb 2011 18:10:29 +0000 (UTC) Date: Thu, 3 Feb 2011 18:10:29 +0000 (UTC) From: "Christine Koppelt (JIRA)" To: dev@abdera.apache.org Message-ID: <157104490.7834.1296756629481.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <5592882.186991294317405471.JavaMail.jira@thor> Subject: [jira] Updated: (ABDERA-277) Excessive calls to flush() on the Writer responsible for writing JSONStream data.- 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.atlassia= n.jira.plugin.system.issuetabpanels:all-tabpanel ] Christine Koppelt updated ABDERA-277: ------------------------------------- Fix Version/s: 1.1.2 > 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 > Fix For: 1.1.2 > > 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. - For more information on JIRA, see: http://www.atlassian.com/software/jira