OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help



   Re: SAX2: Interning names in namespaces

[ Lists Home | Date Index | Thread Index ]
  • From: terje@in-progress.com (Terje Norderhaug)
  • To: xml-dev <xml-dev@xml.org>
  • Date: Mon, 7 Feb 2000 12:53:34 -0800

At 6:26 PM 2/6/00, David Brownell wrote:
>Stefan Haustein wrote:
>> Terje Norderhaug wrote:
>> > At 4:46 AM 2/5/00, Stefan Haustein wrote:
>> > > Terje Norderhaug wrote:
>> > >> I suggest that parsers interns each name as a separate string in the
>> > >> namespace it belong to. ...
>> would expect that both strings are java-interned. Also, you
>> would not be able to compare just against a constant.
>It'd be 'string.equals', the pricey one.

That would be the same if no names were interned, so later comparasion is
no worse off if names are interned in their namespace (but instead better
off for those that know how to take advantage of name identity).

-- Terje <terje@in-progress.com> | Media Design in*Progress

   Software for Mac Web Professionals at <http://www.in-progress.com>
   Take advantage of XML with Emile, the first XML editor for Mac!


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS