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

Re: What is fast ?


roman brod
It would be wiser for the original poster to implement both and benchmark each
on his target platform in his target language using his target APIs instead of
asking for speculations from people on XML-DEV.

--
THINGS TO DO IF I BECOME AN EVIL OVERLORD #42
When I capture the hero, I will make sure I also get his dog, monkey, ferret,
or whatever sickeningly cute little animal capable of untying ropes and
filching keys happens to follow him around.

----- Original Message -----
From: "Brod, Roman" <roman.brod@c...>
To: "'raghavendra.ml'" <raghavendra.ml@m...>; "Xml-Dev"
<xml-dev@l...>
Sent: Friday, February 01, 2002 12:31 PM
Subject: RE:  What is fast ?


> In order to manipulate the nodes of DOM you need to run a query to select
the nodes that are subject to manipulation, which involves XPath processor,
which in case of MS DOM is encapsulated by selectNodes() method. Then you need
to iterate over the returned list of nodes to do the actual modification. If
you already have reference to these nodes that are to be modified as a result
some earlier processing, that you don't run the above query and it may be
quite fast to modify them.
> However, if you can quickly modify the underlying xml text, though somewhat
less elegant - read less elegant as euphemism for hack - then parsing the
modified xml text into a new modified DOM might turn to be faster. The actual
difference might be implementation dependent.
> cheers
> roman
>
> -----Original Message-----
> From: raghavendra.ml [mailto:raghavendra.ml@m...]
> Sent: Friday, February 01, 2002 2:17 PM
> To: Xml-Dev
> Subject:  What is fast ?
>
>
> Hi,
>
>  I need to replace 10-20 keywords in a DOM (the keys could be there in DOM
> as text nodes or attribute values in any node at any level). DOM is
> relatively small in size (say 50-60 nodes all levls included).The replaced
> DOM is used by some other process.
>
> Given the scenario .. whats faster ?
> Going through DOM for each possible text value (in Node or node attribute)
> and replace that text which could contain any of the keys and replacing the
> text
>
> or
>
> Replace all keywords in the  xml string and then make a DOM out of it
>
> Or
>
> is there any other way much faster than both ?
>
> Please note the Keywords could also be repeated.
>
> Could somebody help me in making the decision ?
>
> Appreciate any comments .
>
> Thanks & Best regards,
> Raghu
>
>
> MphasiS Europe BV
> Planetenweg 69
> 2132 HM Hoofddorp
> The Netherlands
>
> Tel:     +31(0)-23 55 41 410
> Fax:     +31(0)-23 56 55 132
>
> MphasiS Corporation
> 2601 Ocean Park Blvd
> Suite # 320
> Santa Monica, CA 90405
> Tel:  (1)-310-396-4496
> Fax: (1)-310-396-3862
>
> Architecting Value
> SEI Level 5         ISO
>
>
> -----------------------------------------------------------------
> 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://lists.xml.org/ob/adm.pl>
>
>
> This message is for the named person's use only. It may contain sensitive
and private proprietary or legally privileged information. No confidentiality
or privilege is waived or lost by any mistransmission. If you are not the
intended recipient, please immediately delete it and all copies of it from
your system, destroy any hard copies of it and notify the sender. You must
not, directly or indirectly, use, disclose, distribute, print, or copy any
part of this message if you are not the intended recipient. CREDIT SUISSE
GROUP and each legal entity in the CREDIT SUISSE FIRST BOSTON or CREDIT SUISSE
ASSET MANAGEMENT business units of CREDIT SUISSE FIRST BOSTON reserve the
right to monitor all e-mail communications through its networks. Any views
expressed in this message are those of the individual sender, except where the
message states otherwise and the sender is authorized to state them to be the
views of any such entity.
> Unless otherwise stated, any pricing information given in this message is
indicative only, is subject to change and does not constitute an offer to deal
at any price quoted. Any reference to the terms of executed transactions
should be treated as  preliminary only and subject to our formal written
confirmation.
>
>
>
> -----------------------------------------------------------------
> 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://lists.xml.org/ob/adm.pl>


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


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.