Hostname: page-component-7b7567c8c-2n9c9 Total loading time: 0 Render date: 2026-11-14T03:57:41.438Z Has data issue: false hasContentIssue false

Fast Frequent Querying with Lazy Control Flow Compilation

Published online by Cambridge University Press:  01 July 2007

REMKO TRONÇON
Affiliation:
Department of Computer Science, K. U. Leuven, Leuven, Belgium (email remko@cs.kuleuven.be, gerda@cs.kuleuven.be, bmd@cs.kuleuven.be, henkv@cs.kuleuven.be)
GERDA JANSSENS
Affiliation:
Department of Computer Science, K. U. Leuven, Leuven, Belgium (email remko@cs.kuleuven.be, gerda@cs.kuleuven.be, bmd@cs.kuleuven.be, henkv@cs.kuleuven.be)
BART DEMOEN
Affiliation:
Department of Computer Science, K. U. Leuven, Leuven, Belgium (email remko@cs.kuleuven.be, gerda@cs.kuleuven.be, bmd@cs.kuleuven.be, henkv@cs.kuleuven.be)
HENK VANDECASTEELE
Affiliation:
Department of Computer Science, K. U. Leuven, Leuven, Belgium (email remko@cs.kuleuven.be, gerda@cs.kuleuven.be, bmd@cs.kuleuven.be, henkv@cs.kuleuven.be)
Rights & Permissions [Opens in a new window]

Abstract

Core share and HTML view are not available for this content. However, as you have access to this content, a full PDF is available via the 'Save PDF' action button.

Control flow compilation is a hybrid between classical WAM compilation and meta-call, limited to the compilation of non-recursive clause bodies. This approach is used successfully for the execution of dynamically generated queries in an inductive logic programming setting (ILP). Control flow compilation reduces compilation times up to an order of magnitude, without slowing down execution. A lazy variant of control flow compilation is also presented. By compiling code by need, it removes the overhead of compiling unreached code (a frequent phenomenon in practical ILP settings), and thus reduces the size of the compiled code. Both dynamic compilation approaches have been implemented and were combined with query packs, an efficient ILP execution mechanism. It turns out that locality of data and code is important for performance. The experiments reported in the paper show that lazy control flow compilation is superior in both artificial and real life settings.

Information

Type
Regular Papers
Copyright
Copyright © Cambridge University Press 2007