本文是中英对照毕业设计论文外文文献翻译,下载后直接可用!省去您找文献、pdf整理成word以及翻译的时间,一辈子也就一次的事!
文献引用作者出处信息:Rodriguez-Prieto, O., Ortin, F., & O’Shea, D. Efficient runtime aspect weaving for Java applications[J].Information and Software Technology,2019,100:73–86. (如觉得年份太老,可改为近2年,毕竟很多毕业生都这样做)
英文5153单词,33865字符(字符就是印刷符),中文9232汉字。(如果字数多了,可自行删减,大多数学校都是要求选取外文的一部分内容进行翻译的。)
Efficient runtime aspect weaving for Java applications
ABSTRACT
Context: The aspect-oriented paradigm is aimed at solving the code scattering and tangling problem, providing new mechanisms to support better separation of concerns. For specific scenarios where high runtime adaptability is an important requirement, dynamic Aspect-Oriented Programming (AOP) represents a useful tool. With dy-namic AOP, components and aspects can be woven and unwoven at runtime, enabling applications greater responsiveness when dealing with di?erent or changing requirements. However, this responsiveness typically incurs a cost in terms of runtime performance and memory consumption.
Objective: Build an e?cient dynamic aspect weaver for Java that provides the best runtime performance com-pared to the existing approaches, minimum memory overhead consumption, and similar functionalities to the widespread runtime weavers.
Method: We design and implement weaveJ, a dynamic aspect weaver for Java. This dynamic weaver leverages the invokedynamic opcode introduced in Java 7, which allows dynamic relinkage of method and field access. We compare the functionalities of weaveJ with the existing dynamic weavers for Java, and evaluate their runtime performance and memory consumption.
Results: weaveJ shows the best runtime performance for all benchmarks and real applications executed. Method interception with invokedynamic is at least 142% faster than the techniques used by the existing runtime weavers. The average cost of dynamic weaving using invokedynamic is only 2.2% for short running programs, and 1.5% for long running applications. Moreover, the use of aspects in weave