Patterns for ADT optimisation

  • Authors:
  • David J. Pearce;James Noble

  • Affiliations:
  • Victoria University of Wellington, New Zealand;Victoria University of Wellington, New Zealand

  • Venue:
  • Proceedings of the 15th Conference on Pattern Languages of Programs
  • Year:
  • 2008

Quantified Score

Hi-index 0.00

Visualization

Abstract

Operations on abstract data types can be classified as either queries or updates --- those that either query the current state, or update it. Modern object-oriented programming languages require classes/interfaces to support a predefined set of such operations. This presents a challenge for software designers, since a fixed interface can severely restrict the opportunities for optimisation. In this paper, we present two common patterns --- Specific Query Optimisation and Generalised Query Optimisation --- for optimising such operations. The first requires specific knowledge of which operation to optimise beforehand, whilst the latter provides more leeway in this regard. These patterns are commonly occurring in software, and we find numerous instances of them within the Java standard libraries.