From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#70108: 29.1.90; `defalias' and `current-load-list' Date: Mon, 01 Apr 2024 10:58:50 -0400 Message-ID: References: <87h6gmbek2.fsf@masteringemacs.org> <8634s6be0x.fsf@gnu.org> Reply-To: Stefan Monnier Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34202"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 70108@debbugs.gnu.org, Mickey Petersen To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Apr 01 17:00:24 2024 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 1rrJ96-0008iq-IP for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 01 Apr 2024 17:00:24 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rrJ8l-0003km-IJ; Mon, 01 Apr 2024 11:00:03 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rrJ8h-0003kX-H0 for bug-gnu-emacs@gnu.org; Mon, 01 Apr 2024 10:59:59 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rrJ8h-0005s1-6R for bug-gnu-emacs@gnu.org; Mon, 01 Apr 2024 10:59:59 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rrJ8k-00037n-32 for bug-gnu-emacs@gnu.org; Mon, 01 Apr 2024 11:00:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 01 Apr 2024 15:00:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 70108 X-GNU-PR-Package: emacs Original-Received: via spool by 70108-submit@debbugs.gnu.org id=B70108.171198354111908 (code B ref 70108); Mon, 01 Apr 2024 15:00:01 +0000 Original-Received: (at 70108) by debbugs.gnu.org; 1 Apr 2024 14:59:01 +0000 Original-Received: from localhost ([127.0.0.1]:51362 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rrJ7l-00035p-Ax for submit@debbugs.gnu.org; Mon, 01 Apr 2024 10:59:01 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:34605) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rrJ7j-00035V-Bp for 70108@debbugs.gnu.org; Mon, 01 Apr 2024 10:58:59 -0400 Original-Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 769A9442A8E; Mon, 1 Apr 2024 10:58:50 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1711983528; bh=tlZTJrfuL3hGJdG5BbyohFahkFOti4a1VCKtOc87XHc=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=OEj1Jl9xY7RL5A3QuRV//8zvT87SPHw5dma6IeaYRYhiKB6t5BMCsbjNmIiKKitq6 Em/6YNQUEt6MRhnR0LLKWizX2cRbSUiddCBijc8ag20cZI3UarYe6HWBPIUhX87cdV BCYgpRpgGKqo9hFp9iPejprT7ICmoXlXCjVDvA0NeyWZLsyHkkC9r7FopnqZQWVdSJ wtc6LlHE5/r6Qn/w8Y5HZjTv3nrXdGFQQau8Tdf9lRXU9+f+z2nACqXSty/LAt7Erh sCkieoZ0WCsH9P3qLhgwLQFJy4fNFwqETwWE5Cw8XM4+9bK7P3W9uDY0JuQyZlm2Fp DE2tv/XmWD6dw== Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id D193F442A85; Mon, 1 Apr 2024 10:58:48 -0400 (EDT) Original-Received: from alfajor (unknown [45.72.201.215]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id A5BA1120280; Mon, 1 Apr 2024 10:58:48 -0400 (EDT) In-Reply-To: <8634s6be0x.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 31 Mar 2024 18:46:06 +0300") 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:282477 Archived-At: >> This obviously goes into the C core where a bunch of stuff takes >> place. One of variables that gets updated (somehow) is >> `current-load-list'. Curiously, it ends up with duplicate entries. I'm >> presuming there is a good reason for this. Duplicate entries sounds like a bug (unless there are two calls to `defalias` for the same function name within the same file). Do you have a reproducible recipe that shows this? >> This variable can easily get overrun with identical entries if the >> inattentive programmer does not check if it is already bound. Hmmm... I'm beginning to wonder: do your `defalias` happen while loading a file, or do they happen more "dynamically"? >> I have not narrowed down exactly *why* my ERT suite, when beset by 600 >> tests to run in one go, causes the slowdown. What I'm guessing from >> how each successive tests slows down, that there is some sort of >> non-linear searching going on here, and either `load' (and friends) or >> the mere fact that putting more defaliases into the system causes this >> slowdown to occur. The most common culprit is "N linear searches in an N-long list". Stefan