首页 | 本学科首页   官方微博 | 高级检索  
     

高效DOM实现的技术研究
引用本文:郭红艳,杨波,金蓓弘.高效DOM实现的技术研究[J].计算机科学,2006,33(6):274-277.
作者姓名:郭红艳  杨波  金蓓弘
作者单位:中国科学院软件研究所软件工程技术中心,北京100080
基金项目:国家重点基础研究发展计划(973计划);国家高技术研究发展计划(863计划)
摘    要:DOM是目前为止唯一成为W3C正式标准的XML解析模型。本文充分考虑了DOM模型的特点,设计并实现了一个高性能的支持DOM的XML解析器:OnceDOMParser。为了提高DOM实现的性能,我们采用用户堆提高对象管理的效率,减少对象在JVM中创建的数量,并采取了数据的延迟装载策略。OnceDOMParser经过了严格的XML兼容性测试和DOM API兼容性测试,多方面的性能测试表明OnceDOMParser性能优越,其平均吞吐量比目前最流行的XML解析器Xerces高43.7%左右。

关 键 词:XML解析器  延迟加载

Research on High Performance DOM Implementation
GUO Hong-Yan,YANG Bo,JIN Bei Hong.Research on High Performance DOM Implementation[J].Computer Science,2006,33(6):274-277.
Authors:GUO Hong-Yan  YANG Bo  JIN Bei Hong
Affiliation:Technology Center of Software Engineering, Institute of Software,Chinese Academy of Sciences, Beijing 100080
Abstract: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.
Keywords:DOM
本文献已被 CNKI 维普 万方数据 等数据库收录!
点击此处可从《计算机科学》下载全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号