From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: LdBeth Newsgroups: gmane.emacs.devel Subject: Re: funcall consing Date: Sat, 01 Jan 2022 12:51:53 +0800 Message-ID: References: <87ee5tm422.fsf@logand.com> <83fsq9gdhw.fsf@gnu.org> <8335m8hazn.fsf@gnu.org> Mime-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=ISO-8859-7 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4467"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?ISO-8859-4?Q?Goj=F2?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/27.2 (x86_64-apple-darwin18.7.0) MULE/6.0 (HANACHIRUSATO) Cc: LdBeth , tom@logand.com, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Jan 01 05:53:01 2022 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n3WO4-0000zS-Oc for ged-emacs-devel@m.gmane-mx.org; Sat, 01 Jan 2022 05:53:01 +0100 Original-Received: from localhost ([::1]:50444 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n3WO2-000839-I2 for ged-emacs-devel@m.gmane-mx.org; Fri, 31 Dec 2021 23:52:58 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:59910) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n3WNQ-0007N3-Un for emacs-devel@gnu.org; Fri, 31 Dec 2021 23:52:20 -0500 Original-Received: from out162-62-57-64.mail.qq.com ([162.62.57.64]:49529) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n3WNG-00027V-H5; Fri, 31 Dec 2021 23:52:14 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foxmail.com; s=s201512; t=1641012718; bh=HUwZobw10kaI8mkKjlOT/esORbnxqsXIGOrJZ2RuJP4=; h=Date:From:To:Cc:Subject:In-Reply-To:References; b=g9Wmh9xrkrAnd3BDGnxqkvu0KhSXI51s/YiEJRoNYOXUAAVyCUEDlukcqtHddKLRF DSPsDn44CNTpzWj+TrnZA+tzGglSB1aWinl7fVylEx3Otj0s5k09xlWPQoWuz4ngz7 c7R8yD2So1kV8THYtuzT6kPwhkO1AKUxIM1jPdLk= Original-Received: from Costume-Party.local ([125.111.88.17]) by newxmesmtplogicsvrsza9.qq.com (NewEsmtp) with SMTP id CF88A2F1; Sat, 01 Jan 2022 12:51:56 +0800 X-QQ-mid: xmsmtpt1641012716t4y5fcsi2 X-QQ-XMAILINFO: M5znx2hx04lbsmLqy28V4uGymaGyGUx3rorkTzrZn6kJ97UW4fuPL89LWs3/qh 4Baw5AyeQVTy96h86FBqpHsf+SCx8Ze3XTcG6oneqshv/PZwwCRSR79dvTQOLMGRCo43u+NjEv5/ EXBAKc8ZZZvHXVj9qkWHPth2CERwNMBhNUti5lZF/CfsP88cntKJlfQ1LjmkCbTdfmmVYNPM6RJD bebj6jXbxR7jL2iSsaFqdzOAqtZDLQSW/1JLt0CKEyeRxldd+wzm9fdSYSNTDzTqOp/U3ZyaEA5H 2Hx26Le3XEbg7guxsmeZNQaYQfgNzXbbv4BV6XsK846zW/mnJMpE25fd/RMFsMz8jrvfO/lse46j 7msjrOyxlgRtiLq9vOESwmtuvYIthCrKHybjtFVY7yJ8sDjx5BzewBds6Q6wWsww1nbNDeEEcABv /88VKCFMeRVNccGrCLHUOCCkxrQWpIx8/RarT+4tujqoBo3lWWBOl3T0aHBzht/BJovqb+9bZmLH RqRD1780J5/7M/LfyC5zRqk6CCftpY4nsCqKJ5cg2XPYVdakjICGqzt3XDPGVaagvLA8Xaz/WIJ/ nvozMkZE0/kU//l0RqKqrrADjj3Q3L+9MrUofLExF6pL5xiUDIfXi2+OGtM5eAFNuEwlxMbKtRQC NWnfsE9rLKKIcSpgL+Bx+LlUAVT3J+B+tmND/c9x+gfpC0JeeJiINOiaeCkofdhT5mL21NlMBldc Jk2ytlAtOly6ZqN/wGvaxoQ/nXHjgXazCXPcayp2V6U4uPqzDQDaheYA//IxAqZds4PjpleuTOkR Fmq/73bNysb0v37Sjtj/sE/3uuOPdn9jnw25fW8/ Original-Received: by Costume-Party.local (Postfix, from userid 501) id 8B3B6203D681CD; Sat, 1 Jan 2022 12:51:53 +0800 (CST) X-OQ-MSGID: In-Reply-To: <8335m8hazn.fsf@gnu.org> X-Face: %[!P\u/BKFRGn_9h9|yO"ho?C0ej^LmM}WMb-`Jfj8OsS^^AKmHYGlD@^|7SEA3UzOGPFbB"OFczY?'\JtJ\lR'@&Y5j; s8{$&|3D>^i.U4l2h?1qpD.+{[$~j]vBeHZf^|BGyL8{/`4 X-Attribution: ldb Received-SPF: pass client-ip=162.62.57.64; envelope-from=andpuke@foxmail.com; helo=out162-62-57-64.mail.qq.com X-Spam_score_int: 27 X-Spam_score: 2.7 X-Spam_bar: ++ X-Spam_report: (2.7 / 5.0 requ) DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HELO_DYNAMIC_IPADDR=1.951, MSGID_FROM_MTA_HEADER=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, RDNS_DYNAMIC=0.982, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:283781 Archived-At: >>>>> In <8335m8hazn.fsf@gnu.org>=20 >>>>> Eli Zaretskii wrote: ldb> The `80' indicats the GC has been invoked 80 times. That is the direct ldb> indication of "consing". Eli> Why are you saying that the number of times GC has been invoked is the Eli> direct indication of consing? I don't think it is. Emacs doesn't Eli> call GC because it knows how much consing was done, it calls GC in Eli> certain strategic points in the interpreter, when the Lisp program Eli> happens to hit those points. And funcall is indeed one of those Eli> points. The docstring of `gc-cons-threshold' says: | Number of bytes of consing between garbage collections. | Garbage collection can happen automatically once this many bytes have been | allocated since the last garbage collection. All data types count. | | Garbage collection happens automatically only when =A1eval=A2 is called. ``GC checkpoints'' are not equivlent to the actually invocation of GC that would increase `gcs-done' (that is the variable been used by `benchmark-run' to calculate the gc numbers). Otherwise, either this docstring is untrue or the snippet below would always print different numbers. ``` (progn (print gcs-done) (eval '(cons 1 2)) (print gcs-done)) ``` --=20 LDB