Skip to main navigation Skip to search Skip to main content

Composing transformations for instrumentation and optimization

  • Stony Brook University

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

5 Scopus citations

Abstract

When transforming programs for complex instrumentation and optimization, it is essential to understand the effect of the transformations, to best optimize the transformed programs, and to speedup the transformation process. This paper describes a powerful method for composing transformation rules to achieve these goals. We specify the transformations declaratively as instrumentation rules and invariant rules, the latter for transforming complex queries in instrumentation and in programs into efficient incremental computations. Our method automatically composes the transformation rules and optimizes the composed rules before applying the optimized composed rules. The method allows (1) the effect of transformations to be accumulated in composed rules and thus easy to see, (2) the replacements in composed rules to be optimized without the difficulty of achieving the optimization on large transformed programs, and (3) the transformation process to be sped up by applying a composed rule in one pass of program analyses and transformations instead of applying the original rules in multiple passes. We have implemented the method for Python. We successfully used it for instrumentation, in ranking peers in BitTorrent; and for optimization of complex queries, in the instrumentation of BitTorrent, in evaluating connections of network hosts using NetFlow, and in generating efficient implementations of Constrained RBAC.

Original languageEnglish
Title of host publicationPOPL
Subtitle of host publicationPEPM'12 - Proceedings of the ACM SIGPLAN 2012 Workshop on Partial Evaluation and Program Manipulation
PublisherAssociation for Computing Machinery
Pages53-62
Number of pages10
ISBN (Print)9781450311182
DOIs
StatePublished - 2012
EventACM SIGPLAN 2012 Workshop on Partial Evaluation and Program Manipulation, PEPM'12, Co-located with POPL 2012 - Philadelphia, PA, United States
Duration: Jan 23 2012Jan 24 2012

Publication series

NameConference Record of the Annual ACM Symposium on Principles of Programming Languages
ISSN (Print)0730-8566

Conference

ConferenceACM SIGPLAN 2012 Workshop on Partial Evaluation and Program Manipulation, PEPM'12, Co-located with POPL 2012
Country/TerritoryUnited States
CityPhiladelphia, PA
Period01/23/1201/24/12

Keywords

  • Design
  • Languages
  • Performance

Fingerprint

Dive into the research topics of 'Composing transformations for instrumentation and optimization'. Together they form a unique fingerprint.

Cite this