DocumentCode :
749868
Title :
Measurements of Dynamic List Structure Use in Lisp
Author :
Clark, Douglas W.
Author_Institution :
Xerox Palo Alto Research Center
Issue :
1
fYear :
1979
Firstpage :
51
Lastpage :
59
Abstract :
This paper is an empirical study of how three large Lisp programs use their list structure during execution. Most list-cell references are due to the functions car and cdr, which are executed about equally often and greatly outnumber other primitive functions. Executions of cdr yield the atom NIL about 10 to 20 percent of the time, and nearby list cells most of the rest of the time. Executions of car yield atoms, small integers, and list cells in varying proportions in the three progrms. Atom references by car tend to concentrate on a small number of atoms. The function rplacd increases static pointer locality, but rplaca is used idiosyncratically. Repeated reference to list cells is likely: over half of all references were to one of the ten most recently referenced cells. Linearization is the rearrangement of lists so that consecutive cdr´s are adjacent in memory whenever possible. This property deteriorates dowly after a list structure is linearized. If all of a program´s lists are linearized, page faults are reduced slightly, but because of the high cost of a fault this small reduction has a large effect.
Keywords :
Dynamic measurements; Lisp; empirical measurements; linearization; list structure; paging; Atomic measurements; Chemicals; Costs; Displays; Fasteners; Instruments; Monitoring; Operating systems; Speech; Terminology; Dynamic measurements; Lisp; empirical measurements; linearization; list structure; paging;
fLanguage :
English
Journal_Title :
Software Engineering, IEEE Transactions on
Publisher :
ieee
ISSN :
0098-5589
Type :
jour
DOI :
10.1109/TSE.1979.226495
Filename :
1702587
Link To Document :
بازگشت