Re: Serialization Analysis and Proposal

On 5/16/07, Alex Milowski <alex@milowski.org> wrote:
> I am uncomfortable with the idea of passing binaries and pseudo-serialized
> XML around in a pipeline.  Escaped XML is still a sequence of unicode
> characters and there is no expectation by users that large chunks of a
> document are going to handled efficiently.  That might not be true for
> "serialization".

In our experience this comes down to a question of quality of
implementation: it is better for an implementation to do streaming and
to handle large sequences of characters by chuncks (say 1K characters
at a time). In Java at least, all this is fairly easy to do, and
implementations that don't do that will have some restrictions like
using an amount of memory of the order of the size of the largest
document that goes through the pipeline.

> Besides, if I want to use something like p:http-request to send an XML
> document to a web service, I'm better off having the serialization
> happen in that component as I'll be writing to the open connection.  The
> same is true of p:store.

It depends what interface you have between those components. With the
right interface it won't make much of a difference.

Alex
-- 
Orbeon Forms - Web 2.0 Forms for the Enterprise
http://www.orbeon.com/

Received on Monday, 21 May 2007 17:45:27 UTC