Return-Path: Delivered-To: apmail-abdera-dev-archive@www.apache.org Received: (qmail 72954 invoked from network); 6 Jan 2011 12:37:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 6 Jan 2011 12:37:10 -0000 Received: (qmail 86210 invoked by uid 500); 6 Jan 2011 12:37:10 -0000 Delivered-To: apmail-abdera-dev-archive@abdera.apache.org Received: (qmail 86084 invoked by uid 500); 6 Jan 2011 12:37:07 -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 86072 invoked by uid 99); 6 Jan 2011 12:37:07 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Jan 2011 12:37:06 +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; Thu, 06 Jan 2011 12:37:05 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id p06CajUw020700 for ; Thu, 6 Jan 2011 12:36:45 GMT Message-ID: <5592882.186991294317405471.JavaMail.jira@thor> Date: Thu, 6 Jan 2011 07:36:45 -0500 (EST) From: =?utf-8?Q?Olve_S=C3=A6ther_Hansen_=28JIRA=29?= To: dev@abdera.apache.org Subject: [jira] Created: (ABDERA-277) Excessive calls to flush() on the Writer responsibler for writing JSONStream data.- MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Excessive calls to flush() on the Writer responsibler for writing JSONStrea= m data.- ---------------------------------------------------------------------------= -------- Key: ABDERA-277 URL: https://issues.apache.org/jira/browse/ABDERA-277 Project: Abdera Issue Type: Bug Affects Versions: 1.1.1, 1.1, 1.0, 0.4.0 Environment: Seen on Jetty7 and in local unit-tests. Reporter: Olve S=C3=A6ther Hansen Priority: Critical When I am creating a feed with a lot of entries, say 2-3000, the JSON seria= lization 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 instantel= y. The json-file took as much as a minute and a half, and as little as 22 s= econds.=20 Some investigation lead me to the excessive calls to flush in the JSONStrea= m-class. https://github.com/apache/abdera/blob/abdera-1.1.1/extensions/json/src/main= /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 l= ocal "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.