Memory reuse for CHR

  • Authors:
  • Jon Sneyers;Tom Schrijvers;Bart Demoen

  • Affiliations:
  • Dept. of Computer Science, K.U. Leuven, Belgium;Dept. of Computer Science, K.U. Leuven, Belgium;Dept. of Computer Science, K.U. Leuven, Belgium

  • Venue:
  • ICLP'06 Proceedings of the 22nd international conference on Logic Programming
  • Year:
  • 2006

Quantified Score

Hi-index 0.00

Visualization

Abstract

Two Constraint Handling Rules compiler optimizations that drastically reduce the memory footprint of CHR programs are introduced. The reduction is the result of reusing suspension terms, the internal CHR constraint representation, and avoiding the overhead of constraint removal followed by insertion. The optimizations are defined formally and their correctness is proved. Both optimizations were implemented in the K.U.Leuven CHR system. Significant memory savings and speedups were measured on classical and well-known benchmarks.