检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
机构地区:[1]解放军信息工程大学电子技术学院,郑州450001 [2]北方信息技术研究所,北京100072
出 处:《计算机科学与探索》2013年第8期736-746,共11页Journal of Frontiers of Computer Science and Technology
基 金:国家自然科学基金No.60903220;国家重点基础研究发展计划(973计划)No.2011CB311801~~
摘 要:针对目前主流的多核处理器,研究了XML(extensible markup language)处理过程中XML文档解析性能优化,从多线程并发执行和提高线程内存访问性能两个方面优化XML文档解析的性能,主要贡献如下:给出了多线程XML文档解析框架,该框架采用多线程执行XML文档的扫描,采用预读线程改善解析线程的内存访问性能;给出了XML文档数据划分算法和数据融合算法,保证了该框架XML文档扫描结果的正确性,且算法自身代价很小;给出了该框架的代价分析,然后基于该代价分析优化了框架的性能;在实验中,基于开源XML处理引擎VTD-XML(virtual token descriptor XML)实现了上述多线程执行框架,测试了XML文档解析的性能。实验结果表明,多线程XML文档解析框架充分利用了多核处理器的计算资源,有效提高了线程的内存访问性能和XML文档解析的性能。Aiming to multi-core processor, this paper studies the performance optimization of XML (extensible markup language) parser in XML documents processing, from multithreading and improving memory access perfor- mance of threads to optimize XML parser. The main contributions are as follows: Firstly, the framework of multi- thread XML documents parsing is presented, the framework uses the multithread implementation for the XML docu- ment scanning, and then uses the preload-ahead thread to improve the memory access performance of the parsing thread; Secondly, the XML document data partitioning algorithm and data fusion algorithm are presented, these two algorithms can ensure the correctness of the results of an XML document scanning, and the algorithm itself has low cost; Thirdly, the cost analysis of the framework is also presented, based on the cost analysis to optimize the performance of the framework; Finally, in the experiment, the multithread execution framework is realized based on the open source XML processing engine VTD-XML (virtual token descriptor XML), and the performance of the XML document parsing is tested. The experimental results show that the proposed multithread XML document parsing framework can take advantage of multi-core processors computing resources, and effectively improve the memory access performance of threads and the parsing performance of XML documents.
关 键 词:VTD-XML 多核处理器 解析性能优化 多线程
分 类 号:TP311[自动化与计算机技术—计算机软件与理论]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:216.73.216.175