摘要
DOM是目前为止唯一成为W3C正式标准的XML解析模型。本文充分考虑了DOM模型的特点,设计并实现了一个高性能的支持DOM的XML解析器OnceDOMParser。为了提高DOM实现的性能,我们采用用户堆提高对象管理的效率,减少对象在JVM中创建的数量,并采取了数据的延迟装载策略。OnceDOMParser经过了严格的XML兼容性测试和DOM API兼容性测试,多方面的性能测试表明OnceDOMParser性能优越,其平均吞吐量比目前最流行的XML解析器Xerces高43.7%左右。
DOM is the only XML processing model recommended by W3C. In this paper, we design and implement a high performance DOM compatible XML parser: OnceDOMParser, based on the thorough analysis of DOM model. For better efficiency, OnceDOMParser introduces user heap to manage the XML data, which reduces the creation of the JVM objects. Besides we adopt lazy load strategy for DOM data. OnceDOMParser has passed the rigorous XML conformance tests and DOM API tests. And various performance tests have proved its excellent performance. It gains about 43. 7% higher throughput than that of Xerces2.6. 2.
出处
《计算机科学》
CSCD
北大核心
2006年第6期274-277,共4页
Computer Science
基金
国家973项目(编号2002CB312005)
国家863项目(编号2001AA113010)的资助。