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

RE: Interesting Monday.

  • From: "Matthew Sergeant (EML)" <Matthew.Sergeant@e...>
  • To: "'James Robertson'" <jamesr@s...>, xml-dev@i...
  • Date: Wed, 3 Feb 1999 10:47:06 +0100

RE: Interesting Monday.
> -----Original Message-----
> From:	James Robertson [SMTP:jamesr@s...]
> 
> At 19:11 2/02/1999 , Matthew Sergeant (EML) wrote:
> 
>   | 	This generates probably 5% more overhead than I have already (the
>   | RDBMS). XML doesn't parse quickly (well, OK, it parses quickly, but
> not
>   | compared to reading data from an RDBMS). When you are processing tens
> of XML
>   | files per second this becomes a huge problem.
> 
> Well, I guess you have to balance elegance & expandability vs raw
> performance. Not an uncommon trade-off ...
> 
	Indeed.

> But, that being said ... 
> 
> Creating XML from an RDBMS is very quick, particularly when you
> do it using straightforward non-XML code.
> 
> True, XML->HTML is not as quick as would be liked, but it
> again depends on the nature of the work. If your HTML needs 
> a lot of complex cross-linking, tables of contents, navigation
> bars, etc, then doing this straight from the RDBMS can be
> a real bitch.
> 
	Actually, the thing I really like about the XML solution - and I
think others will agree, is that it's a whole lot easier to update your XML
structure than it is to update your database. Changing code that accesses a
database is a lot harder than changing code that format's XML.

> Also, the speed of processing XML will depend on the tool.
> Have you considered using something like Omnimark, instead
> of DOM, etc?
> 
	We don't use DOM. We use expat (using perl's XML::Parser and my
CGI::XMLForm module). Expat is very quick. E.g. we can raw-parse (doing
nothing in the parse phase) 100 of our files in 0.25 seconds, but it's 30
seconds to do the same with XML::DOM (another perl module - although that
module has large overheads because it's a pure-perl solution). Of course
that's not a very fair benchmark, because it's a lot easier to manipulate
DOM than it is using expat, but the performance/flexibility tradeoff is
worth it.

	Matt.


xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@i...
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ and on CD-ROM/ISBN 981-02-3594-1
To (un)subscribe, mailto:majordomo@i... the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@i... the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@i...)


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.