[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: About "consing"
From: |
Kevin Rodgers |
Subject: |
Re: About "consing" |
Date: |
Thu, 28 Feb 2013 08:05:55 -0700 |
User-agent: |
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.4; en-US; rv:1.9.2.28) Gecko/20120306 Thunderbird/3.1.20 |
On 2/28/13 7:23 AM, Xue Fuqiao wrote:
In the doc string of the function `memory-use-counts':
Return a list of counters that measure how much consing there has been.
I don't know what the "consing" means here. I only know that `cons' is often
used to add a single element to the front of a list. But this seems to be
irrelevant to the topic.
And in (info "(elisp) Garbage Collection"):
-- Function: memory-use-counts
This returns a list of numbers that count the number of objects
created in this Emacs session.
Does "consing" mean creating an object here? Thanks.
Yes: allocating a cons cell.
--
Kevin Rodgers
Denver, Colorado, USA