mbeckerle commented on PR #879:
URL: https://github.com/apache/daffodil/pull/879#issuecomment-1331234450

   
   > I think one potential advantage of this parallel approach is if the 
incoming sax events are sporadic or relatively slow (e.g. serialized over a 
network/diode). With the coroutine approach, we won't attempt to do any 
unparsing until we get a full batch of events (or we reach the endDoc event). 
And if the batch size is set to something large to avoid context switching, it 
might mean a lot of waiting doing nothing until we get those events. 
   
   While some applications (large data streaming) may be able to benefit from 
this, I know of at least one Daffodil cyberian implementation where the XML 
will be presented to Daffodil all at once, as a single buffer of XML data, to 
be unparsed.  In that case, any context switching is effectively just added 
overhead unless there are idle CPUs and idle memory bandwidth on the system 
(which I consider unlikely). 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to