String interning (WAS: SAX2/Java: Towards a final form)
David Megginson
david at megginson.com
Thu Jan 13 23:55:13 GMT 2000
"Clark C. Evans" <clark.evans at manhattanproject.com> writes:
> ( lhs == rhs | lhs.equals(rhs) )
I think that the Java2 library does something close to this; however,
it's efficient only when the strings *are* identical, not when they're
not
All the best,
David
--
David Megginson david at megginson.com
http://www.megginson.com/
xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev at ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ or CD-ROM/ISBN 981-02-3594-1
Please note: New list subscriptions now closed in preparation for transfer to OASIS.
More information about the Xml-dev
mailing list