Optimization of visitor performance by reflection-based analysis

7Citations
Citations of this article
5Readers
Mendeley users who have this article in their library.
Get full text

Abstract

Visitors are a well-known and powerful design pattern for processing regular data structures and for combining declarative and imperative coding styles. The authors' umod model generator creates Java data models from a concise and algebraic notation. It is primarily used to model intermediate representations of computer languages. The user defines visitor code by extending skeleton classes, which are generated according to traversal annotations in the model. Since the generated code on its own executes the pure traversal and no semantic side-effects, traversals are redundant unless some user-overridden method is eventually invoked. We present a reflection-based control flow analysis to detect this situation and prune the traversal transparently. With a well-stratified model, this may lead to substantial increase in performance. © 2011 Springer-Verlag.

Cite

CITATION STYLE

APA

Lepper, M., & Trancón Y Widemann, B. (2011). Optimization of visitor performance by reflection-based analysis. In Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics) (Vol. 6707 LNCS, pp. 15–30). https://doi.org/10.1007/978-3-642-21732-6_2

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Save time finding and organizing research with Mendeley

Sign up for free