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

RE: SAX2: Namespace proposal

  • From: Joe Lapp <jlapp@w...>
  • To: xml-dev@i...
  • Date: Tue, 21 Dec 1999 08:45:47 -0500

name space in webmethods
At 12:02 PM 12/21/1999 +0000, Miles Sabin wrote:
>This is one of the big problems with intern'ing IMO. The cost
>of intern'ing those args (either done externally by the client 
>app, or internally by a library) wipes out the potential
>benfits.

If you can intern a name once and repeatedly use a ref to that
intern, you do gain benefits.  SAX itself might suffer a hit
doing all the interning, but it saves the app from taking a hit
doing all the string compares, assuming the app can repeatedly
do string compares using the same intern ref of its own naming.
Whether savings are realized depends on the application.

I'm just questioning the use of intern in document APIs.  We
use a special name object instead and force the app to select
the appropriate name object to hand to the API.  By using
String args you aren't forcing the app to use only interned
objects, so you set yourself up for having to deal with both
interned and non-interned Strings.  This leaves you with a
large performance hit to discover that a requested name is
not there.

Your paragraph would be more accurate to me if it said that the
cost of interning potentially wipes out its benefits.
--
Joe Lapp              (Looking for some good people to help design
Principal Architect    and build the Internet's business-to-business
webMethods, Inc.       XML infrastructure.  We are 100% Java.)
jlapp@w...           http://www.webMethods.com

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 unsubscribe, mailto:majordomo@i... the following message;
unsubscribe 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.