From unknown Fri Jun 20 07:19:15 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#58338 <58338@debbugs.gnu.org> To: bug#58338 <58338@debbugs.gnu.org> Subject: Status: 29.0.50; mapatoms called on more elements than in obarray? Reply-To: bug#58338 <58338@debbugs.gnu.org> Date: Fri, 20 Jun 2025 14:19:15 +0000 retitle 58338 29.0.50; mapatoms called on more elements than in obarray? reassign 58338 emacs submitter 58338 Philip Kaludercic severity 58338 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 06 12:16:17 2022 Received: (at submit) by debbugs.gnu.org; 6 Oct 2022 16:16:17 +0000 Received: from localhost ([127.0.0.1]:33319 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ogTXk-0001wF-Iv for submit@debbugs.gnu.org; Thu, 06 Oct 2022 12:16:17 -0400 Received: from lists.gnu.org ([209.51.188.17]:46560) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ogTXi-0001w9-D9 for submit@debbugs.gnu.org; Thu, 06 Oct 2022 12:16:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42640) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ogTXh-0007uz-QO for bug-gnu-emacs@gnu.org; Thu, 06 Oct 2022 12:16:14 -0400 Received: from mout01.posteo.de ([185.67.36.65]:51745) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ogTXf-0006ue-2r for bug-gnu-emacs@gnu.org; Thu, 06 Oct 2022 12:16:13 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id B695D24002B for ; Thu, 6 Oct 2022 18:16:08 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1665072968; bh=ZCXHYiPHRtpNdtr+mEcgYEBBjPynXCirADub02Th1/M=; h=From:To:Subject:Autocrypt:Date:From; b=EEp9G92FrTRohCoyegr7NSxDqRs6V03o72Xsj6CDVoPJTmXqqLMFwsrY5TgCmKWIc Hg8yvY/5RvKuM2FFTgPJxWmjD7zgRX/Zatpb1ZsS3zZ6Jf9v8wlFSMhS3/XNFvBWx2 sImWEV5xywxfkwbfbbJLgPPJOwsUTvo7qThEqj33YIyB61qqrdyyCcNhVOV6yNYURe +rEFQwTlRJ8NwvciIxB++Sy5BwzeDvSEKVXCAZdidzh8uNbCrOBHtq9K2Ys/QVGjUK l5eBxyJVUrC1eVAB0FXOxwn0XhYISD3wc9k+V2AtiD2ZIPAHc2mHMCXQksFBV0WHX3 tys1englLkwWQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4MjxPv5wtWz9rxL for ; Thu, 6 Oct 2022 18:16:03 +0200 (CEST) From: Philip Kaludercic To: bug-gnu-emacs@gnu.org Subject: 29.0.50; mapatoms called on more elements than in obarray? Autocrypt: addr=philipk@posteo.net; prefer-encrypt=nopreference; keydata= mDMEYHHqUhYJKwYBBAHaRw8BAQdAp3GdmYJ6tm5McweY6dEvIYIiry+Oz9rU4MH6NHWK0Ee0QlBo aWxpcCBLYWx1ZGVyY2ljIChnZW5lcmF0ZWQgYnkgYXV0b2NyeXB0LmVsKSA8cGhpbGlwa0Bwb3N0 ZW8ubmV0PoiQBBMWCAA4FiEEDM2H44ZoPt9Ms0eHtVrAHPRh1FwFAmBx6lICGwMFCwkIBwIGFQoJ CAsCBBYCAwECHgECF4AACgkQtVrAHPRh1FyTkgEAjlbGPxFchvMbxzAES3r8QLuZgCxeAXunM9gh io0ePtUBALVhh9G6wIoZhl0gUCbQpoN/UJHI08Gm1qDob5zDxnIHuDgEYHHqUhIKKwYBBAGXVQEF AQEHQNcRB+MUimTMqoxxMMUERpOR+Q4b1KgncDZkhrO2ql1tAwEIB4h4BBgWCAAgFiEEDM2H44Zo Pt9Ms0eHtVrAHPRh1FwFAmBx6lICGwwACgkQtVrAHPRh1Fw1JwD/Qo7kvtib8jy7puyWrSv0MeTS g8qIxgoRWJE/KKdkCLEA/jb9b9/g8nnX+UcwHf/4VfKsjExlnND3FrBviXUW6NcB Date: Thu, 06 Oct 2022 16:16:03 +0000 Message-ID: <87ilkxlygs.fsf@posteo.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.67.36.65; envelope-from=philipk@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) >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) (=3D (length obarray) i)) But instead on my system I get (length obarray) =E2=86=9D 15121 and and i = =E2=86=9D 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 (?) Interestingly enough, I'd expect this to at least output a single message: (let ((ht (make-hash-table))) (mapatoms (lambda (s) (cl-incf (gethash s ht 0)))) (maphash (lambda (sym i) (when (> i 1) (message "%S: %d" sym i))) ht)) but apparently no symbol is invoked twice. Not even by name (let ((ht (make-hash-table :test #'equal))) (mapatoms (lambda (s) (cl-incf (gethash (symbol-name s) ht 0)))) (maphash (lambda (sym i) (when (> i 1) (message "%S: %d" sym i))) ht)) Is this perhaps related to symbol positions? I don't quite understand bare symbols yet, but it doesn't appear to change anything if I check (let ((i 0)) (mapatoms (lambda (s) (when (bare-symbol-p s) (setq i (1+ i)))) obarray) (list (length obarray) i)) I am confused. All I want is a max value for a progress reporter :( In GNU Emacs 29.0.50 (build 14, x86_64-pc-linux-gnu, GTK+ Version 3.24.34, cairo version 1.17.6) of 2022-10-06 built on rhea Repository revision: 2c4c72b45d833b6ccdd2cc06ca3c6c9e9ad54357 Repository branch: feature/package+vc System Description: Fedora Linux 36 (Workstation Edition) Configured using: 'configure --with-pgtk --with-imagemagick' Configured features: CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ IMAGEMAGICK JPEG JSON LIBSELINUX LIBSYSTEMD LIBXML2 MODULES NOTIFY INOTIFY PDUMPER PGTK PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS XIM GTK3 ZLIB Important settings: value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=3Dibus locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: TeX-PDF-mode: t rcirc-color-mode: t rcirc-track-minor-mode: t global-git-commit-mode: t magit-auto-revert-mode: t outline-minor-mode: t flymake-mode: t yas-minor-mode: t flyspell-mode: t repeat-mode: t display-battery-mode: t display-time-mode: t diff-hl-flydiff-mode: t diff-hl-mode: t winner-mode: t windmove-mode: t corfu-history-mode: t corfu-mode: t vertico-multiform-mode: t vertico-mode: t electric-pair-mode: t shell-dirtrack-mode: t recentf-mode: t save-place-mode: t savehist-mode: t pixel-scroll-precision-mode: t pixel-scroll-mode: t xterm-mouse-mode: t tooltip-mode: t global-eldoc-mode: t eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t tab-bar-mode: t file-name-shadow-mode: t context-menu-mode: t global-font-lock-mode: t font-lock-mode: t line-number-mode: t indent-tabs-mode: t transient-mark-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t Load-path shadows: /home/philip/.config/emacs/site-lisp/emacs-inspector/inspector hides /home/= philip/.config/emacs/elpa/inspector-0.8/inspector /home/philip/.config/emacs/site-lisp/emacs-inspector/inspector-tests hides = /home/philip/.config/emacs/elpa/inspector-0.8/inspector-tests /home/philip/.config/emacs/site-lisp/flymake-proselint/flymake-proselint hi= des /home/philip/.config/emacs/elpa/flymake-proselint-0.3.0/flymake-proseli= nt /home/philip/.config/emacs/elpa/transient-0.3.7/transient hides /home/phili= p/Source/emacs/lisp/transient /home/philip/.config/emacs/elpa/xref-1.5.1/xref hides /home/philip/Source/e= macs/lisp/progmodes/xref Features: (shadow emacsbug descr-text solar cal-dst holidays holiday-loaddefs cal-move loadhist reporter ert slime etags fileloop arc-mode archive-mode hyperspec package-vc gnus-search eieio-opt speedbar ezimage dframe flymake-proselint markdown-mode find-dired grep magit-ediff ediff ediff-merg ediff-mult ediff-wind ediff-diff ediff-help ediff-init ediff-util goto-addr eudc-capf eudc cus-start eudc-vars magit-patch emacs-news-mode avy rect focus tex-info tex texmathp texinfo texinfo-loaddefs gnus-fun sh-script smie executable shortdoc facemenu two-column dictionary dictionary-connection ffap find-file magit-extras face-remap pulse color xref ibuffer ibuffer-loaddefs cl-print vertico-buffer consult-vertico consult compat-28 magit-bookmark bookmark whitespace bug-reference mule-util flow-fill modus-vivendi-theme nndoc gnus-dup url-cache display-line-numbers debbugs-gnu debbugs-compat debbugs soap-client url-http url-auth url-gw rng-xsd rng-dt rng-util xsd-regexp mailalias smtpmail autocrypt-message ecomplete rcirc-color rcirc ietf-drums-date sort smiley gnus-cite mm-archive mail-extr textsec uni-scripts idna-mapping ucs-normalize uni-confusable textsec-check qp gnus-bcklg gnus-async gnus-ml disp-table vc-fossil vc-hg vc-bzr vc-src vc-sccs vc-svn vc-cvs vc-rcs org-element avl-tree generator ol-eww eww xdg url-queue mm-url ol-rmail ol-mhe ol-irc ol-info ol-gnus nnselect ol-docview doc-view jka-compr image-mode exif ol-bibtex ol-bbdb ol-w3m ol-doi org-link-doi org ob ob-tangle ob-ref ob-lob ob-table ob-exp org-macro org-footnote org-src ob-comint org-pcomplete org-list org-faces org-entities org-version ob-emacs-lisp ob-core ob-eval org-table oc-basic bibtex ol org-keys oc org-compat advice org-macs org-loaddefs cal-menu calendar cal-loaddefs char-fold misearch multi-isearch dired-aux gnus-dired ef-duo-light-theme ef-duo-dark-theme ef-night-theme ef-spring-theme ef-themes vc-git buffer-env compat misterioso-theme cus-theme orderless vertico-directory vertico-flat magit-submodule magit-obsolete magit-blame magit-stash magit-reflog magit-bisect magit-push magit-pull magit-fetch magit-clone magit-remote magit-commit magit-sequence magit-notes magit-worktree magit-tag magit-merge magit-branch magit-reset magit-files magit-refs magit-status magit magit-repos magit-apply magit-wip magit-log which-func imenu edebug debug backtrace find-func magit-diff smerge-mode git-commit log-edit add-log magit-core magit-autorevert autorevert filenotify magit-margin magit-transient magit-process with-editor server magit-mode transient edmacro kmacro magit-git magit-section magit-utils crm dash vc-backup copyright autocrypt-gnus autocrypt nndraft nnmh utf-7 nnfolder epa-file network-stream nsm gnus-agent gnus-srvr gnus-score score-mode nnvirtual gnus-msg gnus-art mm-uu mml2015 mm-view mml-smime smime gnutls dig nntp gnus-cache gnus-sum shr pixel-fill kinsoku url-file svg dom gnus-group gnus-undo gnus-start gnus-dbus gnus-cloud nnimap nnmail mail-source utf7 nnoo gnus-spec gnus-int gnus-range message yank-media puny rfc822 mml mml-sec epa derived epg rfc6068 epg-config mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader gnus-win noutline outline checkdoc flymake-proc flymake warnings yasnippet-snippets cl-extra yasnippet flyspell ispell auth-source-pass repeat project battery dbus xml shell-command+ thingatpt dired-x dired dired-loaddefs time sendmail rfc2047 rfc2045 ietf-drums gnus nnheader gnus-util mail-utils range mm-util mail-prsvr finder-inf diff-hl-flydiff diff diff-hl log-view pcvs-util vc-dir ewoc vc vc-dispatcher diff-mode easy-mmode hippie-exp winner windmove corfu-history corfu vertico-multiform vertico elec-pair tramp-cache time-stamp tramp-sh tramp tramp-loaddefs trampver tramp-integration cus-edit pp icons files-x tramp-compat rx shell pcomplete parse-time iso8601 time-date ls-lisp format-spec recentf tree-widget wid-edit saveplace savehist pixel-scroll cua-base xt-mouse modus-operandi-theme modus-themes pcase cus-load setup site-lisp auto-site compile text-property-search comint ansi-osc ansi-color autoload loaddefs-gen lisp-mnt debbugs-autoloads rcirc-color-autoloads inspector-autoloads ef-themes-autoloads flylisp-autoloads keycast-autoloads flymake-proselint-autoloads which-key-autoloads geiser-guile-autoloads focus-autoloads vertico-autoloads consult-autoloads vc-fossil-autoloads corfu-autoloads diff-hl-autoloads crdt-autoloads embark-autoloads auctex-autoloads tex-site magit-autoloads buffer-env-autoloads compat-autoloads geiser-chibi-autoloads geiser-impl help-fns radix-tree help-mode geiser-custom geiser-base ring geiser-autoloads slime-autoloads transient-autoloads xref-autoloads info package browse-url url url-proxy url-privacy url-expand url-methods url-history url-cookie generate-lisp-file url-domsuf url-util mailcap url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs password-cache json subr-x map byte-opt gv bytecomp byte-compile cconv url-vars cl-loaddefs cl-lib rmc iso-transl tooltip eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/pgtk-win pgtk-win term/common-win pgtk-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer nadvice seq simple cl-generic indonesian philippine cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget keymap hashtable-print-readable backquote threads dbusbind inotify dynamic-setting system-font-setting font-render-setting cairo gtk pgtk multi-tty make-network-process emacs) Memory information: ((conses 16 1442594 267553) (symbols 48 63865 588) (strings 32 303656 13102) (string-bytes 1 10565718) (vectors 16 140881) (vector-slots 8 3010917 366454) (floats 8 3863 612) (intervals 56 72554 2447) (buffers 1000 114)) From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 06 13:55:24 2022 Received: (at 58338) by debbugs.gnu.org; 6 Oct 2022 17:55:24 +0000 Received: from localhost ([127.0.0.1]:33479 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ogV5f-0006mE-Vs for submit@debbugs.gnu.org; Thu, 06 Oct 2022 13:55:24 -0400 Received: from mail-ed1-f41.google.com ([209.85.208.41]:36495) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ogV5d-0006lu-60 for 58338@debbugs.gnu.org; Thu, 06 Oct 2022 13:55:23 -0400 Received: by mail-ed1-f41.google.com with SMTP id e18so3927867edj.3 for <58338@debbugs.gnu.org>; Thu, 06 Oct 2022 10:55:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date; bh=obYipYiucnaurlSV36Jq27OENlKgtH7Ca3sLtjKJdnA=; b=g2Uuogx2Hz9nuDPUq0KS+OjFwkbZQPZBSDfQLPYRgO37QKlzwsiT6U3Q2QkDPum2Oo emwtEKWnnZU1xI/1h1GOhQAEbCyOeU17ZxVnLUxqfGUKeUNQrk/Lku++PfmMyTiL+QU9 18vfENvWGYQLWZPQKUhPDoNBkUKsCrPvK++46mP5QKs7BaWTSBZMoBBI2ZhgLxh7ri/a 5wGzd7cIZRG+wS6hC33oM32WwGp3BBR1R4uBarhAD+sumpRGOds2yr45enHIw6ZQKxQM 6k2VQoQO/4/2hJwVlEmsE0ibCNRx4VUk1yRLMBlsICCBfvPktVp4/rd2ztSemC/MHyC6 gbFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date; bh=obYipYiucnaurlSV36Jq27OENlKgtH7Ca3sLtjKJdnA=; b=JMFgibwIO9k4wHzh35N/IvDXu/stVcErSaaRtyj9DBLyPva4Rsa2vrY2jX/yd+/kH1 J/vwVFq3nJ+hZlO2bX5r01fvdYXHwjxgvm9HWykxE8VidBdYbnDxPCuv9HelD5eZTnrB 5fCMMs7orT+X0ixzNmAWtBV35DQDET7gualBKprHsJo6Loa/Bkb5DK74OVma3wGFP0Tf U3K3PSms9Y/4cL9Txufl5ZikebTwwjAiiQd+81BpN8OYR2VOTI4FBuCEP6vZAyLz6hfo PTZjw8Cfc7G04j3UFcgAN8zwDCbgAwe0QipzLoFCWkgUN2IwDpP9IWy48n79jKDwtAza 1/0Q== X-Gm-Message-State: ACrzQf1s6vPA52tRUmTU/tovmM1uXaz8QtM/Jxv5v3YzPpXrW5UEZiqe x/OOZAcXpnDLMVqCDQqJHPa+4yJU+x23Ug== X-Google-Smtp-Source: AMsMyM65zsR9rnw7rg9Kd1zlyjB4PwYYqkiDltzetAjq0evsB/4pOcicb0HFYhGSzDmN5kZJOOD8jw== X-Received: by 2002:a05:6402:2692:b0:451:6515:1946 with SMTP id w18-20020a056402269200b0045165151946mr878915edd.417.1665078914761; Thu, 06 Oct 2022 10:55:14 -0700 (PDT) Received: from Mini.fritz.box (pd9e36a85.dip0.t-ipconnect.de. [217.227.106.133]) by smtp.gmail.com with ESMTPSA id b18-20020a17090630d200b0073dd8e5a39fsm10505868ejb.156.2022.10.06.10.55.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Oct 2022 10:55:13 -0700 (PDT) From: =?utf-8?Q?Gerd_M=C3=B6llmann?= To: Philip Kaludercic Subject: Re: bug#58338: 29.0.50; mapatoms called on more elements than in obarray? In-Reply-To: <87ilkxlygs.fsf@posteo.net> (Philip Kaludercic's message of "Thu, 06 Oct 2022 16:16:03 +0000") References: <87ilkxlygs.fsf@posteo.net> Date: Thu, 06 Oct 2022 19:55:12 +0200 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (darwin) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 58338 Cc: 58338@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Philip Kaludercic writes: >>>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) > (=3D (length obarray) i)) > > But instead on my system I get (length obarray) =E2=86=9D 15121 and and i= =E2=86=9D > 78050, which is are at a ratio of 5.16169565505. obarray is a hash table. with each array element being a list of symbols if not empty, for hash collisions. And it's not a hash table of the kind that make-hash-table makes, which I added much later. And not a Lisp list of symbols. With your figures, it seems that there are on average 5 symbols per bucket. For details you'd have to look at the C code. From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 06 14:01:29 2022 Received: (at 58338) by debbugs.gnu.org; 6 Oct 2022 18:01:29 +0000 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 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 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==; 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 Date: Thu, 06 Oct 2022 21:00:58 +0300 Message-Id: <83a668q1b9.fsf@gnu.org> From: Eli Zaretskii To: Philip Kaludercic In-Reply-To: <87ilkxlygs.fsf@posteo.net> (message from Philip Kaludercic on Thu, 06 Oct 2022 16:16:03 +0000) Subject: Re: bug#58338: 29.0.50; mapatoms called on more elements than in obarray? References: <87ilkxlygs.fsf@posteo.net> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 58338 Cc: 58338@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > 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? From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 06 14:04:34 2022 Received: (at 58338) by debbugs.gnu.org; 6 Oct 2022 18:04:35 +0000 Received: from localhost ([127.0.0.1]:33499 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ogVEY-00071L-K3 for submit@debbugs.gnu.org; Thu, 06 Oct 2022 14:04:34 -0400 Received: from mail-oi1-f173.google.com ([209.85.167.173]:36468) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ogVEX-000719-MI for 58338@debbugs.gnu.org; Thu, 06 Oct 2022 14:04:34 -0400 Received: by mail-oi1-f173.google.com with SMTP id s192so2908723oie.3 for <58338@debbugs.gnu.org>; Thu, 06 Oct 2022 11:04:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:to:subject:message-id:date:mime-version :references:in-reply-to:from:from:to:cc:subject:date; bh=SV4L+n1tT2pquAjDnrh9bxiE5ea8aHq3HATbYP1hiFo=; b=gz0m4JJyMRnXDRskzMAj8hWBINY13gGSkw8PRWCAbad8q0whhoGbjYrjE65TL3FMRJ L+RZPanDLwvhf/QVnkUZQJgJZ5pzIUIEdkbrDcRQX+qmr4yzGN6L7KquJif6u7gOWy5m eG/9RnFN1C0Q1xJxvddgDRrd7z5pS2tQEg8dq/kNr1aGPNumWCc+4wUGcP3ZfWX3lQDs UFA/9psRKUx+KUUJaaMEzUhc8GrGxVQ34JSMBuaksoNVL5jW0KLsRYLGPH3Hj8tXRK63 UGsX5EAbfwAZKA/PxyXkVZuP/VYIAUVSaNoQt3yeOW/Z+knKM31b0iNIj0S7xAfMy5rH kUWg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:to:subject:message-id:date:mime-version :references:in-reply-to:from:x-gm-message-state:from:to:cc:subject :date; bh=SV4L+n1tT2pquAjDnrh9bxiE5ea8aHq3HATbYP1hiFo=; b=Aswcfo5991Bh/8uYTqk8pVeTULR24TBp9XM29a5LShtO4V6fbEcMEsrwDLOyj4yy97 PhS2WvaRcRS32U9o8cVmcV8uXeNKBenJ44n+QOM3Sm1MA5DVySJZzASaqWaC1PenmU46 gq6HrO0nJ2N+BYnPBRdhzNvumbShflLGSXN6xE22PnilETAEM6rLES/SsiiUjx0GX7oY q9o4NgXKHt835IKh9CJBxl2uc8thvu1z0lcjHf9Qr63xFVv65Sqn9PmXLtjQhhh4aBlw C5qaPr/054P+X07/5d9JEwrv/5ZD9wdxix7sRHlFPnF4SKEjBqIkFZMj97r+Qt+DOUvR ii5A== X-Gm-Message-State: ACrzQf2N+ryrl+PrcYo8o6+tP7UNVty164Upojhjvs2JREMcn+jhtJ6Y TkEHJECVBK7rdPQN1kosxtPQL3JOQPG1m1g51Y4= X-Google-Smtp-Source: AMsMyM4xY05OqCMrxmjci5Sawka0/IpUTV9dkVJiCxJkqhpFOWsqKejVEgVrGzzPPvkbUZ/EysRBS3XMd5osF0o/q7E= X-Received: by 2002:a05:6808:1a09:b0:350:1e6a:e469 with SMTP id bk9-20020a0568081a0900b003501e6ae469mr5357636oib.92.1665079467933; Thu, 06 Oct 2022 11:04:27 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Thu, 6 Oct 2022 13:04:27 -0500 From: Stefan Kangas In-Reply-To: <87ilkxlygs.fsf@posteo.net> References: <87ilkxlygs.fsf@posteo.net> X-Hashcash: 1:20:221006:58338@debbugs.gnu.org::fnuhfRiOc8xA2zjo:9Pan MIME-Version: 1.0 Date: Thu, 6 Oct 2022 13:04:27 -0500 Message-ID: Subject: Re: bug#58338: 29.0.50; mapatoms called on more elements than in obarray? To: Philip Kaludercic , 58338@debbugs.gnu.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 58338 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Philip Kaludercic writes: > 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) > (=3D (length obarray) i)) > > But instead on my system I get (length obarray) =E2=86=9D 15121 and and i= =E2=86=9D > 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 (?) In my current long running Emacs session, I'm getting: 15121 119188 Using emacs -Q on 29.0.50: 15121 17228 Using emacs -Q on 27.1: 15121 15880 > Interestingly enough, I'd expect this to at least output a single > message: > > (let ((ht (make-hash-table))) > (mapatoms (lambda (s) (cl-incf (gethash s ht 0)))) > (maphash (lambda (sym i) > (when (> i 1) > (message "%S: %d" sym i))) > ht)) > > but apparently no symbol is invoked twice. Not even by name > > (let ((ht (make-hash-table :test #'equal))) > (mapatoms (lambda (s) (cl-incf (gethash (symbol-name s) ht 0)))) > (maphash (lambda (sym i) > (when (> i 1) > (message "%S: %d" sym i))) > ht)) Same results in Emacs 27.1. > Is this perhaps related to symbol positions? I don't quite understand > bare symbols yet, but it doesn't appear to change anything if I check It seems like this might be older than bare symbols. From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 06 14:22:00 2022 Received: (at 58338) by debbugs.gnu.org; 6 Oct 2022 18:22:01 +0000 Received: from localhost ([127.0.0.1]:33524 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ogVVQ-0001ED-KP for submit@debbugs.gnu.org; Thu, 06 Oct 2022 14:22:00 -0400 Received: from mout02.posteo.de ([185.67.36.66]:49819) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ogVVM-0001Dx-MK for 58338@debbugs.gnu.org; Thu, 06 Oct 2022 14:21:59 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 641BA240101 for <58338@debbugs.gnu.org>; Thu, 6 Oct 2022 20:21:49 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1665080510; bh=9NB4eEU+RE9+Q6hHXP+9bWcaLBqf50oR0Tg2QSZSwEM=; h=From:To:Cc:Subject:Autocrypt:Date:From; b=Po2fpLBuTRiyxXNdV4uGxHNjg0Z1m5Doi45pfuJkShVAGMMfuYSe6nN7j79Dq0lNX N37A2SZRo1ypeLwRYfV9a9s1qDq7PBv35y3wuCcqLZvNX2GJWYC8wlZFy3q2v0UNkD 90Ja5/Cy3qpJ6cjHpGDPn5IgtHUbuGrjOJqgLoSphw/gZJRToT+NbFOISWCP7dlQ/0 TR+uHB3+4Vd9xa3jRKrgOOltaz7VABeJch24Pz+/05SvQ3A4w8YdAkFZ5n0MfCS0fj YpaIV/KDb9lL0/yLVU50NS1obSmRxubbS8obem71JCdYPSASZul38Nt3ToqNnAHlR0 kb+XgL1TRJ1gw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Mk0C10vvjz6tmH; Thu, 6 Oct 2022 20:21:48 +0200 (CEST) From: Philip Kaludercic To: Gerd =?utf-8?Q?M=C3=B6llmann?= Subject: Re: bug#58338: 29.0.50; mapatoms called on more elements than in obarray? In-Reply-To: ("Gerd =?utf-8?Q?M=C3=B6llman?= =?utf-8?Q?n=22's?= message of "Thu, 06 Oct 2022 19:55:12 +0200") References: <87ilkxlygs.fsf@posteo.net> Autocrypt: addr=philipk@posteo.net; prefer-encrypt=nopreference; keydata= mDMEYHHqUhYJKwYBBAHaRw8BAQdAp3GdmYJ6tm5McweY6dEvIYIiry+Oz9rU4MH6NHWK0Ee0QlBo aWxpcCBLYWx1ZGVyY2ljIChnZW5lcmF0ZWQgYnkgYXV0b2NyeXB0LmVsKSA8cGhpbGlwa0Bwb3N0 ZW8ubmV0PoiQBBMWCAA4FiEEDM2H44ZoPt9Ms0eHtVrAHPRh1FwFAmBx6lICGwMFCwkIBwIGFQoJ CAsCBBYCAwECHgECF4AACgkQtVrAHPRh1FyTkgEAjlbGPxFchvMbxzAES3r8QLuZgCxeAXunM9gh io0ePtUBALVhh9G6wIoZhl0gUCbQpoN/UJHI08Gm1qDob5zDxnIHuDgEYHHqUhIKKwYBBAGXVQEF AQEHQNcRB+MUimTMqoxxMMUERpOR+Q4b1KgncDZkhrO2ql1tAwEIB4h4BBgWCAAgFiEEDM2H44Zo Pt9Ms0eHtVrAHPRh1FwFAmBx6lICGwwACgkQtVrAHPRh1Fw1JwD/Qo7kvtib8jy7puyWrSv0MeTS g8qIxgoRWJE/KKdkCLEA/jb9b9/g8nnX+UcwHf/4VfKsjExlnND3FrBviXUW6NcB Date: Thu, 06 Oct 2022 18:21:47 +0000 Message-ID: <877d1cn77o.fsf@posteo.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 58338 Cc: 58338@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Gerd M=C3=B6llmann writes: > Philip Kaludercic writes: > >>>>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) >> (=3D (length obarray) i)) >> >> But instead on my system I get (length obarray) =E2=86=9D 15121 and and = i =E2=86=9D >> 78050, which is are at a ratio of 5.16169565505. > > obarray is a hash table. with each array element being a list of symbols > if not empty, for hash collisions. And it's not a hash table of the > kind that make-hash-table makes, which I added much later. And not a > Lisp list of symbols. I see, from the value it appeared to be a flat vector. > With your figures, it seems that there are on average 5 symbols per > bucket. For details you'd have to look at the C code. Eli Zaretskii writes: >> From: Philip Kaludercic >> Date: Thu, 06 Oct 2022 16:16:03 +0000 >>=20 >>=20 >> >From reading the docstring of `mapatoms', I would assume that this would >> evaluate to t: >>=20 >> (let ((i 0)) >> (mapatoms (lambda (_) (setq i (1+ i))) obarray) >> (=3D (length obarray) i)) >>=20 >> But instead on my system I get (length obarray) =E2=86=9D 15121 and and = i =E2=86=9D >> 78050, which is are at a ratio of 5.16169565505. >>=20 >> 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? In that case what confuses me is that (length obarray) doesn't throw an error. Or what useful information does that give me? From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 06 14:26:07 2022 Received: (at 58338) by debbugs.gnu.org; 6 Oct 2022 18:26:07 +0000 Received: from localhost ([127.0.0.1]:33532 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ogVZP-0001LG-KV for submit@debbugs.gnu.org; Thu, 06 Oct 2022 14:26:07 -0400 Received: from mail-ej1-f50.google.com ([209.85.218.50]:41710) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ogVZO-0001Km-K1 for 58338@debbugs.gnu.org; Thu, 06 Oct 2022 14:26:07 -0400 Received: by mail-ej1-f50.google.com with SMTP id qw20so5813836ejc.8 for <58338@debbugs.gnu.org>; Thu, 06 Oct 2022 11:26:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date; bh=HTXAFNl0DxkLcPY4f522nApxt4GLXPZAUfpcm0/32jQ=; b=bJinhiV14a+3t1NNYY7e7ZxLLYWpvLXHdYm7osEhCsoosopJfW0HMtLumcAYpBNwmV rA6zr7XpJr417GoGdpjKWAY+k2H2+rZ0/vSWsVWVQafDKGUPICjC9JQIUShn+orntdzx 7F3OCIB6wMMR+R+nZhYebPpmfvHeh/1ycBcbWQou859jw34vXvzYqq6W119bf4ic50Jv DoZeLfhkab71S9YcEv1hnnvmsVdxxJZ1H0ghQnjOM3DYnmrvqoiLKkcMW9G8WGPm04BN offMP00GC7qfKy18EgC0smrlE+gGuZKJximW2IQr7VWCrld3FvHAI4adpDBvBzGrJl42 Ub+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date; bh=HTXAFNl0DxkLcPY4f522nApxt4GLXPZAUfpcm0/32jQ=; b=BQ0CigJ9Oc9Kp4ajOSp4ludb8BG7R7Bb7K7XJpFpspeEUbFVCWE0+OI6aDBwJNCbim 8W0aOqYXccnVzmR/Cv71ZKVDQOdVusXcTP4frVmDQHxob8QaX8MOBCp00Npg/2yCiX30 SdqQyrWT8s5HxNXLn1BCCT0bYmfVsZZb+uxpiAImzDohUdPU2LwCYz+WJauSpD0gU4Nl m/khRffLOoQlFXyRCYmML3dQ/6pTnCSNj0S+W2Nz7yMA00uaT8O6IGRey0M9EMRjITOv 5EL0Xg/sCoRD2Gws/3aM67fl9/tfIi2Ias4yhwcALkS99BF0TP21O0OnkifljXbyEckm t0mA== X-Gm-Message-State: ACrzQf0Ia7g0f/iJw/anVzHJSOArxZZBCm2G8lfVnBhKEBDKL9DCJO+v BZjWwigMK8fFZ0vr32O1O5Y= X-Google-Smtp-Source: AMsMyM4vuBk8LCsw1T+bPj6nWmkjYTFwAzWq9fypcQsnLtzGLosaHa1afrUXogpdGMPePtFQFIvazA== X-Received: by 2002:a17:907:808:b0:730:54cc:b597 with SMTP id wv8-20020a170907080800b0073054ccb597mr968533ejb.434.1665080760592; Thu, 06 Oct 2022 11:26:00 -0700 (PDT) Received: from [192.168.178.21] (pd9e36a85.dip0.t-ipconnect.de. [217.227.106.133]) by smtp.gmail.com with ESMTPSA id 11-20020a170906308b00b0073dc4385d3bsm50195ejv.105.2022.10.06.11.25.59 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 06 Oct 2022 11:26:00 -0700 (PDT) Message-ID: Date: Thu, 6 Oct 2022 20:25:59 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.13.0 Subject: Re: bug#58338: 29.0.50; mapatoms called on more elements than in obarray? Content-Language: en-US To: Philip Kaludercic References: <87ilkxlygs.fsf@posteo.net> <877d1cn77o.fsf@posteo.net> From: =?UTF-8?Q?Gerd_M=c3=b6llmann?= In-Reply-To: <877d1cn77o.fsf@posteo.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -1.8 (-) X-Debbugs-Envelope-To: 58338 Cc: 58338@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.8 (--) On 22-10-06 20:21 , Philip Kaludercic wrote: > In that case what confuses me is that (length obarray) doesn't throw an > error. Or what useful information does that give me? It's a vector, and each vector has a length. From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 06 14:29:08 2022 Received: (at 58338) by debbugs.gnu.org; 6 Oct 2022 18:29:09 +0000 Received: from localhost ([127.0.0.1]:33543 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ogVcK-0001Pg-MF for submit@debbugs.gnu.org; Thu, 06 Oct 2022 14:29:08 -0400 Received: from mout01.posteo.de ([185.67.36.65]:58591) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ogVcI-0001PC-3k for 58338@debbugs.gnu.org; Thu, 06 Oct 2022 14:29:06 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id ECD4824002B for <58338@debbugs.gnu.org>; Thu, 6 Oct 2022 20:28:59 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1665080940; bh=FnTPlm42REJguvE9ElZi/SmH//dz8rmkZTo7L3r2tp0=; h=From:To:Cc:Subject:Autocrypt:Date:From; b=RnEOd+ghbzDku72Sn2T0sQayawr8qs/wBrRAQD+Gf+w6L4b014ZqcabispED5akPQ xrU/EkPi2fD0VRLCLCqCj+DLjLr6w8Q+dFnm7AfFcfkfBsgK+pN+htCKhbceAv+Zpf RlH/YOBk682R1RQKeXrOcawsNYacNJ+mC5yI2sfiFYzKmMKAkaijF3c3NyQDzdwucA QIVX+PHRReFVJ8GjkugJ/WFu7qLkk5RBbW+KNKSnTgT3HGF7SGqOR2WJ0dG18SBP2G rEsSxqjYANjsqhdgASXt9s/kYUDRLwKQtYqMvH+Qk9O0OeUUQT4FY+AmaLJ0EbQef+ HYy2woqhfI6jg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Mk0MH2cM7z6tmf; Thu, 6 Oct 2022 20:28:59 +0200 (CEST) From: Philip Kaludercic To: Gerd =?utf-8?Q?M=C3=B6llmann?= Subject: Re: bug#58338: 29.0.50; mapatoms called on more elements than in obarray? In-Reply-To: ("Gerd =?utf-8?Q?M=C3=B6llmann=22's?= message of "Thu, 6 Oct 2022 20:25:59 +0200") References: <87ilkxlygs.fsf@posteo.net> <877d1cn77o.fsf@posteo.net> Autocrypt: addr=philipk@posteo.net; prefer-encrypt=nopreference; keydata= mDMEYHHqUhYJKwYBBAHaRw8BAQdAp3GdmYJ6tm5McweY6dEvIYIiry+Oz9rU4MH6NHWK0Ee0QlBo aWxpcCBLYWx1ZGVyY2ljIChnZW5lcmF0ZWQgYnkgYXV0b2NyeXB0LmVsKSA8cGhpbGlwa0Bwb3N0 ZW8ubmV0PoiQBBMWCAA4FiEEDM2H44ZoPt9Ms0eHtVrAHPRh1FwFAmBx6lICGwMFCwkIBwIGFQoJ CAsCBBYCAwECHgECF4AACgkQtVrAHPRh1FyTkgEAjlbGPxFchvMbxzAES3r8QLuZgCxeAXunM9gh io0ePtUBALVhh9G6wIoZhl0gUCbQpoN/UJHI08Gm1qDob5zDxnIHuDgEYHHqUhIKKwYBBAGXVQEF AQEHQNcRB+MUimTMqoxxMMUERpOR+Q4b1KgncDZkhrO2ql1tAwEIB4h4BBgWCAAgFiEEDM2H44Zo Pt9Ms0eHtVrAHPRh1FwFAmBx6lICGwwACgkQtVrAHPRh1Fw1JwD/Qo7kvtib8jy7puyWrSv0MeTS g8qIxgoRWJE/KKdkCLEA/jb9b9/g8nnX+UcwHf/4VfKsjExlnND3FrBviXUW6NcB Date: Thu, 06 Oct 2022 18:28:58 +0000 Message-ID: <8735c0n6vp.fsf@posteo.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 58338 Cc: 58338@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Gerd M=C3=B6llmann writes: > On 22-10-06 20:21 , Philip Kaludercic wrote: > >> In that case what confuses me is that (length obarray) doesn't throw an >> error. Or what useful information does that give me? > > It's a vector, and each vector has a length. But isn't the fact that it is a vector just a detail of the internal implementation? What is even more vexing is that the deceptively named `obarray-size' just calls `length'. Is there no better way to count the number of entries in a obarray, as `hash-table-count' does for hash tables? From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 06 14:32:56 2022 Received: (at 58338) by debbugs.gnu.org; 6 Oct 2022 18:32:56 +0000 Received: from localhost ([127.0.0.1]:33559 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ogVfz-0001YJ-QN for submit@debbugs.gnu.org; Thu, 06 Oct 2022 14:32:56 -0400 Received: from mail-ej1-f48.google.com ([209.85.218.48]:42916) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ogVfx-0001Y5-TY for 58338@debbugs.gnu.org; Thu, 06 Oct 2022 14:32:54 -0400 Received: by mail-ej1-f48.google.com with SMTP id kg6so6451808ejc.9 for <58338@debbugs.gnu.org>; Thu, 06 Oct 2022 11:32:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date; bh=CPJncR4+C8JnjXSmcx9RtreYJtZoIv04m6LDjy9v9gM=; b=RwOdI+Pnx+59d+rcktjPDErACdhx0p9DiHOeoCh34cBXUCy2W39GHEYvwAH0NDITf7 FC1Z23FSjeYWRheTRWnlZ2PJq9HkmB+hULNaZ275x9F3t1Ig9ZzcxEz+pSDzcuZMGTI2 sBLmuJ1DJjpR0vpdzBMPzfP11sFsLlxuHnPQk7afm3p/6oNoWiWq7yElpfDTaA7OWaXk zl40ro1qa3kBz3xhog43r0yb9z6mbIkDsSz9Et9bfu/kc66negt5kpClRbFh1PUc9+cH cFk18Xna/d4CxJZUwlFGE0GDW+fK5FT6njugX4a2ZJ5jfZfKmz7mDCI8CCmBxWjbIZaw qxKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date; bh=CPJncR4+C8JnjXSmcx9RtreYJtZoIv04m6LDjy9v9gM=; b=o0AtB6khOYpTH4nI4D0Xpf/vs4SSpBBUiaGZ3WP2lbP0UcPtV+wbLes+kw/Op5ASQw F1T4wjyEmLNMU/e/gFjGWW4FC+TF346l0MjsHwOUuqVQw2pOOrNEt7fa8PYZdgH+BiWt IJgmxBxCW4pxkY0XKuumDnZdzzPxARlfWlo9KuOlFiPjFzxNbWav6212JATaZ4LSTmDR 3YYkJpcUVw39Oqr/X4xccu/15C6dwTyJVB/1FnQ5emL5NE6Nf7pnc3Ot1hlwVZCgx6XL 27IwvkK0HcctS1q8N/HG+jUYMFDqj+T9hOaO3fcna6tcmg678oLaoJC3aBJ/cuWueM39 QhQw== X-Gm-Message-State: ACrzQf0oB0+Wfs/fTda7FQBmQjpY3oyz1ANxOS2xumz0e0GDlWzCnixC mt7JMACpgg7tkwnKHMBc/+U= X-Google-Smtp-Source: AMsMyM713YWLa9YnbXrAHYzZEKyHcADgBZDh0ZdOdHT0n6PU1MNja7ULpHJFO6mB3zJudIEu0myH4A== X-Received: by 2002:a17:907:da6:b0:787:baf3:1c79 with SMTP id go38-20020a1709070da600b00787baf31c79mr1009257ejc.458.1665081168151; Thu, 06 Oct 2022 11:32:48 -0700 (PDT) Received: from [192.168.178.21] (pd9e36a85.dip0.t-ipconnect.de. [217.227.106.133]) by smtp.gmail.com with ESMTPSA id g19-20020a17090613d300b0073d7e58b1bcsm31706ejc.157.2022.10.06.11.32.47 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 06 Oct 2022 11:32:47 -0700 (PDT) Message-ID: <4dd5f196-0d36-b232-7c02-24a27230753e@gmail.com> Date: Thu, 6 Oct 2022 20:32:46 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.13.0 Subject: Re: bug#58338: 29.0.50; mapatoms called on more elements than in obarray? Content-Language: en-US To: Philip Kaludercic References: <87ilkxlygs.fsf@posteo.net> <877d1cn77o.fsf@posteo.net> <8735c0n6vp.fsf@posteo.net> From: =?UTF-8?Q?Gerd_M=c3=b6llmann?= In-Reply-To: <8735c0n6vp.fsf@posteo.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Score: -1.8 (-) X-Debbugs-Envelope-To: 58338 Cc: 58338@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.8 (--) On 22-10-06 20:28 , Philip Kaludercic wrote: > Gerd Möllmann writes: > >> On 22-10-06 20:21 , Philip Kaludercic wrote: >> >>> In that case what confuses me is that (length obarray) doesn't throw an >>> error. Or what useful information does that give me? >> >> It's a vector, and each vector has a length. > > But isn't the fact that it is a vector just a detail of the internal > implementation? It's all history. Obarray existed since the Big Bang. Don't use it. From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 06 14:51:57 2022 Received: (at 58338-done) by debbugs.gnu.org; 6 Oct 2022 18:51:58 +0000 Received: from localhost ([127.0.0.1]:33575 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ogVyP-00022Z-JM for submit@debbugs.gnu.org; Thu, 06 Oct 2022 14:51:57 -0400 Received: from mout02.posteo.de ([185.67.36.66]:53325) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ogVyL-000223-7c for 58338-done@debbugs.gnu.org; Thu, 06 Oct 2022 14:51:56 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 3379E240106 for <58338-done@debbugs.gnu.org>; Thu, 6 Oct 2022 20:51:44 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1665082307; bh=bvV5lCz0DNYt9XDgG5FaLZ7EkUqAo1Phbmsz4dH9464=; h=From:To:Cc:Subject:Autocrypt:Date:From; b=Tcf2HRl1aoC5jgF4KfBOE5V7h9uSs24LPHLaqyW2iJhEafXWSgB01KmdUnT+26rlx GQixgnxwPgZcPn8x30WMy/m34Z1cAHPGjG7CmHF2W0TIwdSrrlTWgO6SXGDGpSQSBU EZcTsoma52fh/4QTsQh0lesBYBHweddaljGE0K4vE3IPXqORsGy5ydZqNTKkuelKnq CWxQQ3/MRV8tuc/EbEHpOMS3sdZ8PE4FrSwZH8jP9yT1DHu9nNehiEZHszdZSGuYpC /wn0CmLra5gQ386eit6yyMrMPdq7e2+HWjg6bYDFFF+BwcvnjZ+K28hgBHlgzFGCol SxHzaZDVS4+0w== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Mk0sX2CYXz9rxM; Thu, 6 Oct 2022 20:51:43 +0200 (CEST) From: Philip Kaludercic To: Gerd =?utf-8?Q?M=C3=B6llmann?= Subject: Re: bug#58338: 29.0.50; mapatoms called on more elements than in obarray? In-Reply-To: <4dd5f196-0d36-b232-7c02-24a27230753e@gmail.com> ("Gerd =?utf-8?Q?M=C3=B6llmann=22's?= message of "Thu, 6 Oct 2022 20:32:46 +0200") References: <87ilkxlygs.fsf@posteo.net> <877d1cn77o.fsf@posteo.net> <8735c0n6vp.fsf@posteo.net> <4dd5f196-0d36-b232-7c02-24a27230753e@gmail.com> Autocrypt: addr=philipk@posteo.net; prefer-encrypt=nopreference; keydata= mDMEYHHqUhYJKwYBBAHaRw8BAQdAp3GdmYJ6tm5McweY6dEvIYIiry+Oz9rU4MH6NHWK0Ee0QlBo aWxpcCBLYWx1ZGVyY2ljIChnZW5lcmF0ZWQgYnkgYXV0b2NyeXB0LmVsKSA8cGhpbGlwa0Bwb3N0 ZW8ubmV0PoiQBBMWCAA4FiEEDM2H44ZoPt9Ms0eHtVrAHPRh1FwFAmBx6lICGwMFCwkIBwIGFQoJ CAsCBBYCAwECHgECF4AACgkQtVrAHPRh1FyTkgEAjlbGPxFchvMbxzAES3r8QLuZgCxeAXunM9gh io0ePtUBALVhh9G6wIoZhl0gUCbQpoN/UJHI08Gm1qDob5zDxnIHuDgEYHHqUhIKKwYBBAGXVQEF AQEHQNcRB+MUimTMqoxxMMUERpOR+Q4b1KgncDZkhrO2ql1tAwEIB4h4BBgWCAAgFiEEDM2H44Zo Pt9Ms0eHtVrAHPRh1FwFAmBx6lICGwwACgkQtVrAHPRh1Fw1JwD/Qo7kvtib8jy7puyWrSv0MeTS g8qIxgoRWJE/KKdkCLEA/jb9b9/g8nnX+UcwHf/4VfKsjExlnND3FrBviXUW6NcB Date: Thu, 06 Oct 2022 18:51:43 +0000 Message-ID: <87mta8lr9c.fsf@posteo.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 58338-done Cc: 58338-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Gerd M=C3=B6llmann writes: > On 22-10-06 20:28 , Philip Kaludercic wrote: >> Gerd M=C3=B6llmann writes: >>=20 >>> On 22-10-06 20:21 , Philip Kaludercic wrote: >>> >>>> In that case what confuses me is that (length obarray) doesn't throw an >>>> error. Or what useful information does that give me? >>> >>> It's a vector, and each vector has a length. >> But isn't the fact that it is a vector just a detail of the internal >> implementation? > > It's all history. Obarray existed since the Big Bang. Don't use it. OK, then I'll close the report. But if I am not supposed to use the obarrays, what would you recommend if I want to count the number of known symbols? (Context: I am trying to detect all variables defined in a package, and since that takes a while I wrapped the `mapatoms' call in a progress reporter, that needs a maximal value). From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 06 15:35:31 2022 Received: (at 58338) by debbugs.gnu.org; 6 Oct 2022 19:35:31 +0000 Received: from localhost ([127.0.0.1]:33593 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ogWeZ-00039k-1O for submit@debbugs.gnu.org; Thu, 06 Oct 2022 15:35:31 -0400 Received: from mail-ej1-f51.google.com ([209.85.218.51]:45778) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ogWeT-00039H-Ru for 58338@debbugs.gnu.org; Thu, 06 Oct 2022 15:35:30 -0400 Received: by mail-ej1-f51.google.com with SMTP id sc25so711150ejc.12 for <58338@debbugs.gnu.org>; Thu, 06 Oct 2022 12:35:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tcd.ie; s=google21; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=cqXDhPRJ0cnygGas0bQbXPuYhTHmGseHQSiDHrWfxEY=; b=a66CCMlEWJcWZEIAit0yVBpJS1rhRtMrpY+vFvcew4rNJtSCoqFFaom9RJ+Bsmme2f 2mhzHnY1SlMkqEf4Gu8yRNQkavR8G4PFUTHeskL79d2jxwIbK7y+JSG81oMEsTBijBHW JxICqLVL7GyWTzq0MZe6hMK4bp+F7kKTLwZz5mem/KH/iqmm7bSBcTPIEaEWbvEzbOdm rQeUM5lMvWBBZp0Fd9R890JssIUrLBf9pn99IBRb329nyMYHd/TYt6i8L0nrWI0M6Pve BJhtput57b6iqer5BWGQxJdPea5vfOx1Pp2AEvmclMEtsRrQSSl0CkerDwuRKKMp8YX8 MaXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=cqXDhPRJ0cnygGas0bQbXPuYhTHmGseHQSiDHrWfxEY=; b=FZFATqf1S4+hn+T4QeFJ9ZilXkFGv0rbBcsUf/B0cJWblJD0tJ4A/IZU5weqOi+IRI Gi5ich5wxLu7+vGrBGSx/qyVyXc0eYN3LTmWos5j3qlwV2e3pWF32hFLfL6VuwoGEAPl wCiHA8JgetiKettPlbe7oQJRQJLfBx18jrnKSLJ3vleG2Am1XZYdNEAJzOkcrta0wKaf TPV4UqQfKKwYlFtKtPMOCElPNwKgMhNMiicWVqelPJaNx+jFufaflXvDpL9Oo6tBeQHp 0H1MZwt58y4SEJxBExEoRYHphvAucGZQ8A0hysItSHtdzONuMrs+drRD3nCj92pX4hfm nTgA== X-Gm-Message-State: ACrzQf376JlGs4wj2P/8g818+16No2vRa7D1SuyW2PtjmKGMX5c0NHDm Q0dZFKdww4ZwRM8dAWeov6Eh5dzwSbGO6A== X-Google-Smtp-Source: AMsMyM7s28LmOYH5+urwxrNk3h1RbSMlN6fWe5TSiJPbga3aLekl9IpQm7qHIAuP+m9RNwXaRcU5ZA== X-Received: by 2002:a17:907:a407:b0:783:5465:902 with SMTP id sg7-20020a170907a40700b0078354650902mr1201979ejc.35.1665084919725; Thu, 06 Oct 2022 12:35:19 -0700 (PDT) Received: from localhost ([2a02:587:326a:a129:e754:c019:8715:df11]) by smtp.gmail.com with ESMTPSA id me8-20020a170906aec800b00781b589a1afsm95770ejb.159.2022.10.06.12.35.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Oct 2022 12:35:18 -0700 (PDT) From: "Basil L. Contovounesios" To: 58338@debbugs.gnu.org Subject: Re: bug#58338: 29.0.50; mapatoms called on more elements than in obarray? In-Reply-To: <87mta8lr9c.fsf@posteo.net> (Philip Kaludercic's message of "Thu, 06 Oct 2022 18:51:43 +0000") References: <87ilkxlygs.fsf@posteo.net> <877d1cn77o.fsf@posteo.net> <8735c0n6vp.fsf@posteo.net> <4dd5f196-0d36-b232-7c02-24a27230753e@gmail.com> <87mta8lr9c.fsf@posteo.net> Date: Thu, 06 Oct 2022 22:35:17 +0300 Message-ID: <87h70gu4ne.fsf@tcd.ie> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 58338 Cc: philipk@posteo.net X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Philip Kaludercic [2022-10-06 18:51 +0000] wrote: > OK, then I'll close the report. But if I am not supposed to use the > obarrays, what would you recommend if I want to count the number of > known symbols? (Context: I am trying to detect all variables defined > in a package, and since that takes a while I wrapped the `mapatoms' call in > a progress reporter, that needs a maximal value). An obarray is just a flat vector of symbols, but each symbol itself is actually implemented in C as a singly linked list of symbols (see struct Lisp_Symbol). If you inspect mapatoms you'll see it indeed traverses each symbol chain in each vector bucket. > What is even more vexing is that the deceptively named `obarray-size' > just calls `length'. Is there no better way to count the number of > entries in a obarray, as `hash-table-count' does for hash tables? Thus I don't think it's possible to know ahead of time the exact number of symbols interned in a given obarray without traversing the whole structure with mapatoms (but maybe I'm forgetting something obvious). For this and associated reasons hash tables are generally preferred over obarrays as an associative data structure, but for variables/symbols we're stuck with obarray. HTH, -- Basil From debbugs-submit-bounces@debbugs.gnu.org Fri Oct 07 00:52:37 2022 Received: (at 58338-done) by debbugs.gnu.org; 7 Oct 2022 04:52:37 +0000 Received: from localhost ([127.0.0.1]:33982 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ogfLh-0000k5-1a for submit@debbugs.gnu.org; Fri, 07 Oct 2022 00:52:37 -0400 Received: from mail-ej1-f47.google.com ([209.85.218.47]:41855) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ogfLc-0000jr-Nk for 58338-done@debbugs.gnu.org; Fri, 07 Oct 2022 00:52:35 -0400 Received: by mail-ej1-f47.google.com with SMTP id qw20so8208888ejc.8 for <58338-done@debbugs.gnu.org>; Thu, 06 Oct 2022 21:52:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date; bh=3pCeW0C6Q/wlL2DGyBQ8A9wUvSynyR/6/BwBJaO+laE=; b=SjOvCnpQWo+d85Dx/+b8FeB8aPjPKrr71Wxji91F+h9OKw1Lhn1PhbjfxNj4yYfiUL 0UOan0VBRqrB6vBKWvAKyEFBCOS5vj62oT+LL69ZsRGr46Y+Yxm2t4De8DgVyaA8KB7w rDsQyM24nuSDLDRb/HOEZcIyIdNpJkuUfuavQPfwlIA5zuUN7uTMGEvyvErOys4WYBVj K7JT9SVHULMVOMZKmgeSGqHmihF5xUDN389mQk3rxcz2tOSh39af17xcHX7qy6+GtJge Y4Wigls16yuVMKK229s7qm5CqDjYOAJ9V2dno5tnuIT1e7r2HuuHnH41WWRL5CJOjcMj V6oQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date; bh=3pCeW0C6Q/wlL2DGyBQ8A9wUvSynyR/6/BwBJaO+laE=; b=xCDZr9mwDOlyuVNBCLw7Dbm+RxOyC+QvYohQtBMNmM8EkVXBraFGTT4QO143VZvuom 95TawBtn3vbUsjcRHBi/0UHHLHmpx9cXLRzqVeOXSRGfaHrCJgyUaq+4S8AX3bNW4tmI rbjMODw0qxj9iN30rLvY7LpOPSiBZPsC3J4LSVky0EE/Mvu86J95SdwJSoDihy8y1tXz J3kXShJmn/ziDteF7NYkdQ0dMAMP9R3ysP7Ef4GH8m9WcZahLLqxwSC8FNOTZDG7UGzQ 02F9w3bCiH6Cdn+qSji/JAdL1I8durY5c2OUWWxcHE5Afmcrjyyrwy2U+A93WEyPFq1b Kqbg== X-Gm-Message-State: ACrzQf21XWWkOGLHYeZbYGz58vjJpY9UaZA5D53h8iv19LtqWlD3QFib a3Nktk70JbC4/0xuslHPb720N3aLwZU4sw== X-Google-Smtp-Source: AMsMyM4FnOS4/Fk/OdY0Eo06BJaYWErk8Vh19iP3dlwSjmTd4ee2K2E2VBvvBJ+apceegMJ+9rsEuA== X-Received: by 2002:a17:907:168f:b0:788:c642:1624 with SMTP id hc15-20020a170907168f00b00788c6421624mr2662393ejc.79.1665118345354; Thu, 06 Oct 2022 21:52:25 -0700 (PDT) Received: from Mini.fritz.box (pd9e36c8d.dip0.t-ipconnect.de. [217.227.108.141]) by smtp.gmail.com with ESMTPSA id lb9-20020a170907784900b0076ff600bf2csm616286ejc.63.2022.10.06.21.52.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Oct 2022 21:52:24 -0700 (PDT) From: =?utf-8?Q?Gerd_M=C3=B6llmann?= To: Philip Kaludercic Subject: Re: bug#58338: 29.0.50; mapatoms called on more elements than in obarray? In-Reply-To: <87mta8lr9c.fsf@posteo.net> (Philip Kaludercic's message of "Thu, 06 Oct 2022 18:51:43 +0000") References: <87ilkxlygs.fsf@posteo.net> <877d1cn77o.fsf@posteo.net> <8735c0n6vp.fsf@posteo.net> <4dd5f196-0d36-b232-7c02-24a27230753e@gmail.com> <87mta8lr9c.fsf@posteo.net> Date: Fri, 07 Oct 2022 06:52:23 +0200 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (darwin) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 58338-done Cc: 58338-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Philip Kaludercic writes: > Gerd M=C3=B6llmann writes: >> It's all history. Obarray existed since the Big Bang. Don't use it. > > OK, then I'll close the report. But if I am not supposed to use the > obarrays, what would you recommend if I want to count the number of > known symbols? I guess you have to use mapatoms, then. > (Context: I am trying to detect all variables defined > in a package, Use do-symbols and alike. Oh wait, that won't work, we don't have packages. Did I already mention that CL packages would be really nice to have... :-). > and since that takes a while I wrapped the `mapatoms' call in > a progress reporter, that needs a maximal value). You could also do it like Apple and Microsoft do: start displaying N% with increasing N for the first minutes, until we reach 99%, and then leave it at that until finished. We could even offer that as a general functionality, say with-apple-progress :-). Or just display something that shows that it's still alive. -, \, |, /, for example. Or the number of things processed so far. From unknown Fri Jun 20 07:19:15 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 04 Nov 2022 11:24:09 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator