Environment Reuse in the WAM
- Cite this paper as:
- Demoen B., Nguyen PL. (2008) Environment Reuse in the WAM. In: Garcia de la Banda M., Pontelli E. (eds) Logic Programming. ICLP 2008. Lecture Notes in Computer Science, vol 5366. Springer, Berlin, Heidelberg
The TOAM reuses eagerly allocated stack frames, while the WAM avoids to allocate environments. This is investigated by using the tak/4 benchmark as an inital case study for better understanding what one can expect from environment reuse for deterministic predicates in the WAM. Additionally, artificial programs are used to amplify the findings. The experiment compares the impact of reusing an environment versus avoiding to create it: the latter seems a superior technique.
Unable to display preview. Download preview PDF.