From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: funcall consing Date: Sat, 01 Jan 2022 12:05:54 -0500 Message-ID: References: <87ee5tm422.fsf@logand.com> <83fsq9gdhw.fsf@gnu.org> <8335m8hazn.fsf@gnu.org> <83o84vgbjx.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9966"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) 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 18:07: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 1n3hqO-0002MT-Jx for ged-emacs-devel@m.gmane-mx.org; Sat, 01 Jan 2022 18:07:00 +0100 Original-Received: from localhost ([::1]:58578 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n3hqN-00083F-G9 for ged-emacs-devel@m.gmane-mx.org; Sat, 01 Jan 2022 12:06:59 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:37686) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n3hpT-0007Mx-H1 for emacs-devel@gnu.org; Sat, 01 Jan 2022 12:06:03 -0500 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:12046) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n3hpR-0000mn-3A; Sat, 01 Jan 2022 12:06:02 -0500 Original-Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id B2E65441407; Sat, 1 Jan 2022 12:05:58 -0500 (EST) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 73C594413DC; Sat, 1 Jan 2022 12:05:57 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1641056757; bh=agoemiRQzFRFYxkGmWOURqHmoI8gxdMoKuftkcr4TnY=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=YItwK0ijnXXLrWa0enGh8C/NGAq+LnLzkHZvrmep3doQtgr/EPSfnfio3tLvyBegw P6JOcXM9aKT2zyphydAKaM1qeM66aPOqaQOCQAVU/WOKGzZNn49t0Bpr6QszKpq+cJ hh+ptbSvgS8sMIeCzG+tAVfNT+qiNcHA15L7aBlaArWtGOqZymJWv3kPCnJ5AlHt3U 5Iy3C/DCl2FJoJUdMn7KMBaiDBftsopE2DPEwFog1mVTGbshmllrEkNC2v0ajegJb2 bjN+Q3cxctaDHlpb4i44FV0Vy0Q/orX02jYzGvUVZyKXN7ZojYk5u4yPPCcZ8Y/wow 1P9ap0gWIsDBw== Original-Received: from pastel (unknown [216.154.30.173]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 1E224120409; Sat, 1 Jan 2022 12:05:57 -0500 (EST) In-Reply-To: <83o84vgbjx.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 01 Jan 2022 09:28:02 +0200") Received-SPF: pass client-ip=132.204.25.50; envelope-from=monnier@iro.umontreal.ca; helo=mailscanner.iro.umontreal.ca X-Spam_score_int: -23 X-Spam_score: -2.4 X-Spam_bar: -- X-Spam_report: (-2.4 / 5.0 requ) DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable 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:283801 Archived-At: Eli Zaretskii [2022-01-01 09:28:02] wrote: > See my other message about the details: you are reading too much into > the doc string. Nevertheless, 80 calls to the GC suggests that Emacs has allocated more than (* 80 gc-cons-threshold) bytes of heap data, whereas that sample code doesn't need to allocate anything at all, at first glance (so it should call the GC zero times). Stefan