[
https://issues.apache.org/jira/browse/JENA-2173?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17430540#comment-17430540
]
Rob Vesse commented on JENA-2173:
---------------------------------
Yeah for historical context the {{PipedRDFIterator}} was originally written
this way, with a single blocking synchronous queue, because one of my use cases
was consuming that iterator across many parallel threads so maximum thread
safety was a key requirement.
I don't have any objections to deprecating the old stuff in favour of the new
stuff. The historical stuff this was originally written for is very much
historical (never got productised) and if it did ever get resurrected I could
rewrite it in terms of {{AsyncParser}} relatively easily.
> Add asynchronous parsing
> ------------------------
>
> Key: JENA-2173
> URL: https://issues.apache.org/jira/browse/JENA-2173
> Project: Apache Jena
> Issue Type: Improvement
> Components: RIOT
> Affects Versions: Jena 4.2.0
> Reporter: Andy Seaborne
> Assignee: Andy Seaborne
> Priority: Major
> Fix For: Jena 4.3.0
>
>
> Add code to parser on a separate thread and send batching of parsed items to
> the caller thread for further processing.
> This is only beneficial in certain circumstances because there is overhead in
> setup and in the passing of data between threads.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)