This Article 
   
 Share 
   
 Bibliographic References 
   
 Add to: 
 
Digg
Furl
Spurl
Blink
Simpy
Google
Del.icio.us
Y!MyWeb
 
 Search 
   
Measurements of Dynamic List Structure Use in Lisp
January 1979 (vol. 5 no. 1)
pp. 51-59
D.W. Clark, Xerox Palo Alto Research Center
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.
Index Terms:
paging, Dynamic measurements, empirical measurements, linearization, Lisp, list structure
Citation:
D.W. Clark, "Measurements of Dynamic List Structure Use in Lisp," IEEE Transactions on Software Engineering, vol. 5, no. 1, pp. 51-59, Jan. 1979, doi:10.1109/TSE.1979.226495
Usage of this product signifies your acceptance of the Terms of Use.