Return-Path: X-Original-To: apmail-incubator-jena-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-jena-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D273A9DB2 for ; Wed, 7 Mar 2012 09:17:23 +0000 (UTC) Received: (qmail 84378 invoked by uid 500); 7 Mar 2012 09:17:23 -0000 Delivered-To: apmail-incubator-jena-dev-archive@incubator.apache.org Received: (qmail 83935 invoked by uid 500); 7 Mar 2012 09:17:21 -0000 Mailing-List: contact jena-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jena-dev@incubator.apache.org Delivered-To: mailing list jena-dev@incubator.apache.org Received: (qmail 83847 invoked by uid 99); 7 Mar 2012 09:17:21 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Mar 2012 09:17:21 +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; Wed, 07 Mar 2012 09:17:18 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id CA9B5DBF5 for ; Wed, 7 Mar 2012 09:16:57 +0000 (UTC) Date: Wed, 7 Mar 2012 09:16:57 +0000 (UTC) From: "Henry Story (Commented) (JIRA)" To: jena-dev@incubator.apache.org Message-ID: <1383556921.32263.1331111817831.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <433475203.5843.1327855270041.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (JENA-203) support for Non Blocking Parsers 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/JENA-203?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13224111#comment-13224111 ] Henry Story commented on JENA-203: ---------------------------------- A lot slower means it is currently 10x slower. Small changes can make big differences in such parsers, but I won't have the time to tweak it now. If people would like to see how much they can improve they are welcome > support for Non Blocking Parsers > -------------------------------- > > Key: JENA-203 > URL: https://issues.apache.org/jira/browse/JENA-203 > Project: Apache Jena > Issue Type: Improvement > Reporter: Henry Story > > In a Linked Data environment servers have to fetch data off the web. The speed at which such data > is served can be very slow. So one wants to avoid using up one thread for each connections (1 thread = > 0.5 to 1MB approximately). This is why Java NIO was developed and why servers such as Netty > are so popular, why http client libraries such as https://github.com/sonatype/async-http-client are more > and more numerous, and why framewks such as http://akka.io/ which support relatively lightweight > actors (500 bytes per actor) are growing more viisible. > Unless I am mistaken the only way to parse some content is using methods that use an > InputStream such as this: > val m = ModelFactory.createDefaultModel() > m.getReader(lang.jenaLang).read(m, in, base.toString) > That read call blocks. Would it be possible to have an API which allows > one to parse a document in chunks as they arrive from the input? -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira