计算机科学 ›› 2006, Vol. 33 ›› Issue (6): 128-131.

• • 上一篇    下一篇

支持StAX的高效XML解析器的设计与实现

任鑫 曹冬磊 金蓓弘   

  1. 中国科学院软件研究所软件工程技术中心,北京100080
  • 出版日期:2018-11-17 发布日期:2018-11-17
  • 基金资助:
    本文工作受国家973项目(编号2002CB312005)、国家863项目(编号2001AA113010)的资助.

REN Xin ,CAO Dong-Lei, JIN Bei-Hong (Technology Center of Software Engineering, Institute of Software,Chinese Academy of Sciences,Beijing 100080)   

  • Online:2018-11-17 Published:2018-11-17

摘要: StAX是JCP提出的一种新的XML解析方式,它提供给用户更多的解析控制权。本文给出了用于XML语法分析的下推自动机模型的设计以及StAX解析器OnceStAXParser的实现。OnceStAXParser在经过了严格的XML兼容性测试和StAXAPI兼容性测试之后,还从多个方面进行了性能优化,包括自动机实现优化、有计划的预分配和延迟处理策略以及适度封装策略等。性能测试数据表明,OnceStAXParser的吞吐量比SunSJSXP平均高5%,比BEAStAXRI平均高38%。

关键词: XML解析器 StAX 性能优化

Abstract: StAX is presented by JCP JSR-173 specification which supports XML pull parsing and gives more parsing control to users. This paper describes the design of pushdown automaton model for XML syntax analysis and illustrates the implementation of StAX parser O

Key words: XML parser, StAX, Performance optimization

No related articles found!
Viewed
Full text


Abstract

Cited

  Shared   
  Discussed   
No Suggested Reading articles found!