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

RE: SAX drivers bug ... or feature !

  • From: Toivo Lainevool <tlainevool@y...>
  • To: david@m..., XML Developers' List <xml-dev@i...>
  • Date: Sat, 21 Nov 1998 12:54:09 -0800 (PST)

sax memory limit





---david@m... wrote:
>
> Toivo Lainevool writes:
> 
>  > If your worried about the performance of the parser, just setting
>  > the attributeList to null would be faster than doing the
>  > AttributeListImpl::clear() which would cause a removeAllElement()
>  > on each of the underlying member vectors.  If your cranking away
>  > with the parser, chances are the low priority gc task wouldn't be
>  > fired while your doing this, unless you hit your memory limit.
> 
> You're confusing AttributeListImpl with AttributeList -- AttributeList
> is an interface, not a class.  While AttributeListImpl is available
> for those who want it (such as a client program that needs to copy a
> few attribute lists), most SAX drivers provide a more efficient
> implementation, which is often an adapter of the parser's own, native
> interface.

I won't waste any more bandwidth on this list going into more
implementation details and performance ramifications, but i'd just
like to finish this though off. (I wouldn't mind discussing this issue
off of the list if anyone wants to continue it.)

There seems to be a tradeoff here between ease of use of the parser
(the client code needs to know to copy the AttributeList to hang onto
it) vs. flexibility of parser implementation (allowing the parser to
re-use the Attribute list).  This decision depends on the motivation
of the original design.  Since David was involved in this and I
wasn't, I won't second guess the decision.  I think as long as the
ramification of this decision is recorded properly in the
documentation, it shouldn't be a problem.


Thnaks,

Toivo Lainevool
_________________________________________________________
DO YOU YAHOO!?
Get your free @yahoo.com address at http://mail.yahoo.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/
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.