Re: AttributeMap (was Re: Announcement: SAX 1998-01-12 Draft)

Don Park (donpark@quake.net)
Thu, 15 Jan 1998 14:42:11 -0800


>Because to iterate over the AttributeMap an Enumeration object has to
>get allocated. AttributeList allows iteration over the attributes
>without having to do any allocation.

If the AttributeMap itself implemented Enumeration interface and returned
itself as the enumerator, there is no need to allocate an extra enumeration.
Multiple enumeration can be supported with a slight twist. Net result is
that extra object instantiation is not needed in most case.

Don Park