Selective memoization
Selective memoization
复制标题
选择性记忆
DOI:
10.1145/604131.604133
复制
发表时间:
2003
期刊:
影响因子:
--
通讯作者:
R. Harper
中科院分区:
文献类型:
--
作者:
Umut A. Acar;G. Blelloch;R. Harper
We present a framework for applying memoization selectively. The framework provides programmer control over equality, space usage, and identification of precise dependences so that memoization can be applied according to the needs of an application. Two key properties of the framework are that it is efficient and yields programs whose performance can be analyzed using standard techniques.We describe the framework in the context of a functional language and an implementation as an SML library. The language is based on a modal type system and allows the programmer to express programs that reveal their true data dependences when executed. The SML implementation cannot support this modal type system statically, but instead employs run-time checks to ensure correct usage of primitives.