From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#58338: 29.0.50; mapatoms called on more elements than in obarray? Date: Thu, 06 Oct 2022 21:00:58 +0300 Message-ID: <83a668q1b9.fsf@gnu.org> References: <87ilkxlygs.fsf@posteo.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3707"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 58338@debbugs.gnu.org To: Philip Kaludercic Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Oct 06 20:32:49 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1ogVft-0000it-Cn for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 06 Oct 2022 20:32:49 +0200 Original-Received: from localhost ([::1]:56520 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ogVfr-0003Ed-PA for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 06 Oct 2022 14:32:47 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60738) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ogVCJ-0005gT-BE for bug-gnu-emacs@gnu.org; Thu, 06 Oct 2022 14:02:18 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:34417) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ogVC6-0006fe-Gz for bug-gnu-emacs@gnu.org; Thu, 06 Oct 2022 14:02:14 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ogVC6-0006xu-Bc for bug-gnu-emacs@gnu.org; Thu, 06 Oct 2022 14:02:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 06 Oct 2022 18:02:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58338 X-GNU-PR-Package: emacs Original-Received: via spool by 58338-submit@debbugs.gnu.org id=B58338.166507928926711 (code B ref 58338); Thu, 06 Oct 2022 18:02:02 +0000 Original-Received: (at 58338) by debbugs.gnu.org; 6 Oct 2022 18:01:29 +0000 Original-Received: from localhost ([127.0.0.1]:33491 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ogVBY-0006wl-Li for submit@debbugs.gnu.org; Thu, 06 Oct 2022 14:01:28 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:41940) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ogVBW-0006wX-Mz for 58338@debbugs.gnu.org; Thu, 06 Oct 2022 14:01:28 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:39464) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ogVBR-0006cP-Et; Thu, 06 Oct 2022 14:01:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=WhzqMoklXS6VHy8fYavkKQLY2EVOWa8p6Pqo5ilOUR4=; b=QI7chETOiZ2efr4SvYSm SIXsQo00qN9qaHsTnFfTXfbSitEv0hybGBBxO/e1u9FSL1bMMWvItQzaPGHpprOUcT71CTdzWpLnR uNaIICZtLJxoMjL43QSpnJdrcmtXOs9QO0g+WSqnJhIQinPNcllw5cp087A7+quzM1PBH98/H5SRJ Kpw2n82wlnaHQUv8KPOM2yvJepymtZF3tES3PhzL7xWQ4sgMNOzUUL3R3nOl8vzK7IuCNot8l426f cd1C4/nQtGKqkMrC/I7rZA3jj8go/6hLH7MIVJRP0SUWXMWynTe8MHVOkJDRLfcC2kCWLEgsEO+dC BvgmOqphGMmoYg==; Original-Received: from [87.69.77.57] (port=1046 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ogVBB-0008Dg-PL; Thu, 06 Oct 2022 14:01:19 -0400 In-Reply-To: <87ilkxlygs.fsf@posteo.net> (message from Philip Kaludercic on Thu, 06 Oct 2022 16:16:03 +0000) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:244697 Archived-At: > From: Philip Kaludercic > Date: Thu, 06 Oct 2022 16:16:03 +0000 > > > >From reading the docstring of `mapatoms', I would assume that this would > evaluate to t: > > (let ((i 0)) > (mapatoms (lambda (_) (setq i (1+ i))) obarray) > (= (length obarray) i)) > > But instead on my system I get (length obarray) ↝ 15121 and and i ↝ > 78050, which is are at a ratio of 5.16169565505. > > Also interesting, if I intern a variable "foo", the value of i increases > to 83106, while (length obarray) stays the same (?) You assume that obarray is a flat vector or something? Or how about if you explain why the above surprised you?