[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Fast text output from SAX?


php output xml
"If the input is an XML document 
containing 5000 cities for which to solve the travelling salesman 
problem, no XML optimization will help you"

..binary could help then,
makes the crossover easier;-)

-----Original Message-----
From: Elliotte Rusty Harold [mailto:elharo@m...]
Sent: April 14, 2004 05:16
To: Stephen D. Williams
Cc: Dennis Sosnoski; XML DEV
Subject: Re:  Fast text output from SAX?


At 9:37 PM -0400 4/13/04, Stephen D. Williams wrote:

>Example workloads:
>
>create document, insert elements/attributes/values linearly, randomly,
reverse
>output document
>
>input document, read sequentially, randomly, reverse
>
>input document, perform various read/update/delete ratios
>output result
>
>input document, take pieces of input and create new outputs
>output results
>
>input document, create new version as a delta
>output document, delta
>
>input document, delta, perform read/update/delete, insert, append
>output new delta

In practice input and output are the only things that matter. 
Compared to this all manipulations of XML in memory are in the noise 
by several orders of magnitude. Optimizing read, update, delete, 
insert, etc. is pointless. These things all happen in effectively 
zero time compared to parsing, serialization, and sometimes the 
program's unique algorithms. (If the input is an XML document 
containing 5000 cities for which to solve the travelling salesman 
problem, no XML optimization will help you.) But the XML 
manipulations and traversal are trivial.
-- 

   Elliotte Rusty Harold
   elharo@m...
   Effective XML (Addison-Wesley, 2003)
   http://www.cafeconleche.org/books/effectivexml
 
http://www.amazon.com/exec/obidos/ISBN%3D0321150406/ref%3Dnosim/cafeaulaitA

-----------------------------------------------------------------
The xml-dev list is sponsored by XML.org <http://www.xml.org>, an
initiative of OASIS <http://www.oasis-open.org>

The list archives are at http://lists.xml.org/archives/xml-dev/

To subscribe or unsubscribe from this list use the subscription
manager: <http://www.oasis-open.org/mlmanage/index.php>

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.