期刊文献+

基于部分求值和热踪编译的Twig查询优化方法

Twig query optimization based on partial evaluation and hot-trace compilation
下载PDF
导出
摘要 XML树模式查询又称为Twig查询,是XML查询处理中最核心的操作。在Twig查询算法的研究中,Tree Match算法由于极大程度上减少了中间结果的产生,被认为是最好的Twig查询算法之一。然而,在Tree Match算法的核心操作get Next中,存在不少仅依赖Twig模式的计算。当get Next调用次数很多时,这种冗余的重复计算会影响Tree Match算法的性能。为了进一步改进该算法,提出了一种基于部分求值和热踪编译的Twig查询优化方法,该方法以Twig模式作为不变量进行部分求值,把查询请求翻译成一种Twig查询机指令序列,避免了查询过程中对Twig模式的重复计算;并且针对这种查询机指令序列的解释过程,利用热踪编译技术进行了优化。对比实验说明基于部分求值和热踪编译的优化方法能够将Twig查询效率提高到20%到60%。 XML tree pattern query also called Twig query, is the core operation of the XML query. In the study of Twig query algorithm, TreeMatch algorithm is considered to be one of the best Twig query algorithm, since it reduces intermediate results to a great extent. However, in the core operation getNext of TreeMatch algorithm, there are many calculations relying on the Twig pattern. When the number of getNext calls is a lot, the redundant calculation will affect the performance of TreeMatch algorithm. To obtain higher improvement, this paper proposes a novel optimization method for this algorithm based on partial evaluation and hot-trace compilation. Firstly, the method takes Twig pattern as the invariant to do partial evaluation, and translates the query into a sequence of Twig query machine instructions, which avoids some redundant computation in Twig pattern query process. Secondly, the method does hot-trace compilation optimization for the instruction sequence to achieve more efficiency in interpretive execution. Experimental results show that the efficiency of Twig query will increase by 20% to 60% using the optimization method.
作者 万刚辉 廖湖声 苏航 高红雨 高万辰 WAN Ganghui;LIAO Husheng;SU Hang;GAO Hongyu;GAO Wanchen(College of Computer Science, Beijing University of Technology, Beijing 100124, China;School of Software Engineering, Beijing University of Technology, Beijing 100124, China)
出处 《计算机工程与应用》 CSCD 北大核心 2016年第17期84-92,共9页 Computer Engineering and Applications
基金 北京市自然科学基金(No.4122011) 国家自然科学基金青年基金项目(No.61202074)
关键词 TWIG TreeMatch 部分求值 热踪编译 Twig TreeMatch partial evaluation hot-trace compilation
  • 相关文献

参考文献15

  • 1Bruno N,Srivastava D,Koudas N.Holistic twig joins:optimalXML pattern matching[C].Proceedings of ACMSIGMOD,2002.
  • 2Qin L,Yu J X,Ding B.TwigList:make Twig patternmatching fast[M].Advances in databases:concepts,systemsand applications.Berlin/Heidelberg:Springer,2007:850-862.
  • 3Lu J,Ling T W,Bao Z,et al.Extended XML tree patternmatching:theories and algorithms[J].IEEE Trans onKnowl Data Eng,2011,23(3):402-416.
  • 4Jones N D.An introduction to partial evaluation[J].ACMComputing Surveys,1996,28(3):480-503.
  • 5Inoue H,Hayashizaki H,Wu P,et al.Adaptive multi-levelcompilation in a trace-based Java JIT compiler[J].ACMSIGPLAN Notices,2012,47(10):179-194.
  • 6Tahraoui M A,Pinel-Sauvagnat K,Laitang C,et al.A surveyon tree matching and XML retrieval[J].ComputerScience Review,2013,8:1-23.
  • 7Lu J,Ling T W,Chan C Y,et al.From region encodingto extended Dewey:on efficient processing of XMLtwig pattern matching[C].Proceedings of the 31st InternationalConference on Very Large Data Bases,VLDB,Trondheim,Norway,2005:193-204.
  • 8Bondorf A.Improving binding times without explicit CPSconversion[C].Proceedings of the 1992 ACM Conferenceon Lisp and Functional Programming.San Francisco:ACM,1992:1-10.
  • 9苏航,廖湖声.XQuery语言部分求值技术与实现[J].北京工业大学学报,2009,35(12):1710-1717. 被引量:1
  • 10Scholz S B.Partial evaluation as universal compiler tool:experiences from the SAC eco system[C].Proceedingsof the ACM SIGPLAN 2014 Workshop on PartialEvaluation and Program Manipulation,2014:95-96.

二级参考文献1

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部