Download PDF

Colloquium on Implementation of Constraint and Logic Programming Systems, Date: 2008/12/12 - 2008/12/13, Location: Udine, Italy

Publication date: 2008-01-01
15

Proceedings of CICLOPS 2008: 8th International Colloquium on Implementation of Constraint and LOgic Programming Systems

Author:

Sarna-Starosta, Beata
Schrijvers, Tom ; Carro, Manuel ; Demoen, Bart

Keywords:

Constraint Handling Rules, term representation, indexing, attributed data, program transformation

Abstract:

The overhead of matching CHR’s multi-headed rules is al- leviated by constraint store indexing. The attributed variable interface provides efficient means of indexing on logical variables. Current state-of-the-art indexing strategies for ground terms use hash tables. However, the hash tables incur considerable performance overhead, especially when frequently computing hash values for large terms. We propose a high-level approach which improves the efficiency of ground term indexing. In this approach, we introduce a new data representation for ground terms, inspired by attributed variables, that avoids the overhead of hash-table indexing. The experimental evaluation establishes the usefulness of our representation, but indicates a high cost of mapping between this representation and Prolog’s standard terms. Thus, we reuse previously implemented post-processing program transformations to compensate for this overhead. We compare our approach with the current state of the art, and give measurements of its effectiveness in the K.U.Leuven CHR system.