Re: attribute uniquenss checking

Aleksander Slominski <[email protected]> Tue, 14 Oct 2003 10:31:23 -0500
Newsgroups gmane.text.xml.xmlpull.devel
Message-ID <[email protected]>
Jimmy Zhang wrote:

> Hi, Alek, Got a quick question regarding the implemention of attribute 
> uniqueness checking.
> Does pull parse use Hashtable or hashmap for that purposes?

API does not specify this. XPP2 i think used hashtable for namespace 
however after profiling XPP3/MXP1 impl is keeping attributes and 
namespaces in table. this is less memory usage and faster for small 
number of attributes or namespaces. i was considering adaptive algorithm 
to automatically switch to use hashtable/map when number of 
attrs/namesapces is high but i never had something like thta happen in 
real XML documents so it is "future work"

alek

-- 
If everything seems under control, you're just not going fast enough. —Mario Andretti



------------------------ Yahoo! Groups Sponsor ---------------------~-->
Rent DVDs from home.
Over 14,500 titles. Free Shipping
& No Late Fees. Try Netflix for FREE!
http://us.click.yahoo.com/ArdFIC/hP.FAA/3jkFAA/2U_rlB/TM
---------------------------------------------------------------------~->

To unsubscribe from this group, send an email to:
[email protected]

 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/