From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Mickey Petersen Newsgroups: gmane.emacs.bugs Subject: bug#70108: 29.1.90; `defalias' and `current-load-list' Date: Sun, 31 Mar 2024 16:34:37 +0100 Message-ID: <87h6gmbek2.fsf@masteringemacs.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="20262"; mail-complaints-to="usenet@ciao.gmane.io" To: 70108@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Mar 31 17:40:27 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 1rqxIJ-00052D-E4 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 31 Mar 2024 17:40:27 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rqxHv-0008LY-0b; Sun, 31 Mar 2024 11:40: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 1rqxHs-0008Kt-P2 for bug-gnu-emacs@gnu.org; Sun, 31 Mar 2024 11:40:00 -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 1rqxHs-0002dU-H3 for bug-gnu-emacs@gnu.org; Sun, 31 Mar 2024 11:40:00 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rqxHu-0000cw-OV for bug-gnu-emacs@gnu.org; Sun, 31 Mar 2024 11:40:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Mickey Petersen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 31 Mar 2024 15:40:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 70108 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.17118996002395 (code B ref -1); Sun, 31 Mar 2024 15:40:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 31 Mar 2024 15:40:00 +0000 Original-Received: from localhost ([127.0.0.1]:48274 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rqxHr-0000cW-P3 for submit@debbugs.gnu.org; Sun, 31 Mar 2024 11:40:00 -0400 Original-Received: from lists.gnu.org ([2001:470:142::17]:54612) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rqxHp-0000cD-A8 for submit@debbugs.gnu.org; Sun, 31 Mar 2024 11:39:58 -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 1rqxHg-0008KQ-C5 for bug-gnu-emacs@gnu.org; Sun, 31 Mar 2024 11:39:48 -0400 Original-Received: from mail-cwxgbr01on20701.outbound.protection.outlook.com ([2a01:111:f403:261b::701] helo=GBR01-CWX-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rqxHe-0002co-TU for bug-gnu-emacs@gnu.org; Sun, 31 Mar 2024 11:39:48 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=W8hQX06JuGW5FWZKOqlxydKQblFUxUnGzY4LCR5b2/e+dnxaan6RaGGhHUgvkwi8gEcTVVbPyuyuDZNgcrXLEqbK2UkocdwxFBzffKuOoP2/5eRCtzFZ63HNBL/ISftMZwwhIVkU1blBTLZNaGFsZP+dDhpiKwVqqJDZy+INc7TRRlET7nKRvybft+9+X5jR/KEzc3RbbC00j1FZDJ9D7iVA8nWowaNyI/PVzL0hAwKLT7yfC/U0eOgsTt6KK6+j6tkY7otwkLO6lT/q96cS4NcF9naZnktADlx3hAIbSCQpB5BZCiIL0wU1jO7Uahmfkdx+T4ko760heXRGoVTj4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=f1MxZAqTH/vUOWJCTTcjOBRl6sFhDKZfqpKUk9PW5Yo=; b=Mq2yeA08FmGuQFJ/en9s4Y0oIRU31D8sgSy9KXi5n2T0/R54xHHEUmFJ/FBqpqDiX2p/mvRfBkrX7IJFPb43KYlVwv+HM/PXZoUW5L2b4djpUPCZbw6tg0suNIBuTiKHuabvcby2AwtnvdP23kTKLktvwCUwwBaRRt81cCPAgQCi0+SKdnf+kazFZxVJzxz8jEKJqsn2g5JDq1xWgkTIa0VieH18eo2pX5OhqF0WRAiEldBayT1NsVXlx5G4VUea1gvZeuKdfsK3/6oBx4n9ZgWo0YjH+br3ZCKAV5hp5HEWBRi3gHD8tGnkzyogM8ivXtVPsGaf2548YK7w9NJg+A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 178.79.136.144) smtp.rcpttodomain=gnu.org smtp.mailfrom=masteringemacs.org; dmarc=pass (p=none sp=none pct=100) action=none header.from=masteringemacs.org; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semantical.onmicrosoft.com; s=selector1-semantical-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=f1MxZAqTH/vUOWJCTTcjOBRl6sFhDKZfqpKUk9PW5Yo=; b=OcXNfmyXBGRDILi7QYf31wmAHYMz/nQCnnzfSZ5ugd96DWxYswelaD78+EsJZqrED0wWMJKgdysAUsLjMH7/ISq9hKyq1GG0juOGQ20r9hWmBp+4A+U5ysrAlYw0Mz2op8lSU38BkrDrUv+GZZjn3I6UzQ/xs/hCMxdBVnYEoJk= Original-Received: from CWLP123CA0147.GBRP123.PROD.OUTLOOK.COM (2603:10a6:401:88::15) by LO9P265MB7612.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:3ba::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.45; Sun, 31 Mar 2024 15:34:41 +0000 Original-Received: from CW2PEPF000056BF.GBRP265.PROD.OUTLOOK.COM (2603:10a6:401:88:cafe::58) by CWLP123CA0147.outlook.office365.com (2603:10a6:401:88::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.46 via Frontend Transport; Sun, 31 Mar 2024 15:34:41 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 178.79.136.144) smtp.mailfrom=masteringemacs.org; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=masteringemacs.org; Received-SPF: Pass (protection.outlook.com: domain of masteringemacs.org designates 178.79.136.144 as permitted sender) receiver=protection.outlook.com; client-ip=178.79.136.144; helo=semantical.co.uk; pr=C Original-Received: from semantical.co.uk (178.79.136.144) by CW2PEPF000056BF.mail.protection.outlook.com (10.167.240.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7452.22 via Frontend Transport; Sun, 31 Mar 2024 15:34:40 +0000 Original-Received: by semantical.co.uk (Postfix, from userid 5001) id C3F33114002; Sun, 31 Mar 2024 16:34:40 +0100 (BST) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CW2PEPF000056BF:EE_|LO9P265MB7612:EE_ X-MS-Office365-Filtering-Correlation-Id: 02abda46-f69c-4da6-e9c0-08dc51981511 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: KHtYN295drB02dJHCli1CuVU4Z+LUszoSll4/KkOYRnWPw8+Se1MHAl84Ko77LGjfbePm/27UF/em6cCbtT8FOom9jyouDoLW51jFd4tl8Fvuqy2Wd7Cj0M6Sbx+Z717BLCt+m0XULJpaWUBqgUXwwOqcqG5cCletCWwFXRflx9eFXZ7CUzYktxba65sjg3EAn3vnXyvNKD0xfc2b18pOpkHXOHvMSY6em4bjXZiL7p/R40boqlfR2mSOJ5injLg5DETE9gnOpwS9H1xzI/z4r4N6+Xs3cJzo1sNAbkJkyBrRsbCZHrAuaN6392bUdoiqRkmJiBiPuEf65Ch0ND1A+84Q28cE2F5wvOL2Vhd1cafaKfaOm5c0S1EEu6sZAQZDRVIHTHs0av+Aw/uvHpQ1Ds3lKVDNHvKpPl1WgRU8ZW1OdOf3HP16miFJl3aQnAYyNpKCwSQs6kTcj8o/RZbZ6qCweCuIF+EPpofdf69lt6QMnbX5Su5AbKz51gQexyhMlSiV+c/Sb6MQRxX94+pXgKTcWWxII9zT9JlMB9wndsIuiK9GzKEsp+sHJyRStJlkzS0Y3bSYhpkgtSh+E/pwQaa1rmQQAmPGAk9kP1a8cfzLqysWAvkl90aj17z0VyUcfgXRgHm+KJlXeJnJVgxzQG5aEF/+dl8MTrHyvOaojWZCkdYm02i39I7QHdfcCYgYC4ID1xCpFzmmoNUEL8a12WykzlCBf+tD/hM0dOoJOOEtHtZyYoFyHOKm8yhg QHV2j95d/DDz3Y1gAP40sV7USoCfYROST9impzf+2taS7VSdaxLK1f36/cNpTO2tj+0 X-Forefront-Antispam-Report: CIP:178.79.136.144; CTRY:GB; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:semantical.co.uk; PTR:semantical.co.uk; CAT:NONE; SFS:(13230031)(61400799018)(82310400014)(376005)(36860700004)(79816003)(14776008); DIR:OUT; SFP:1102; X-OriginatorOrg: masteringemacs.org X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 Mar 2024 15:34:40.9673 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 02abda46-f69c-4da6-e9c0-08dc51981511 X-MS-Exchange-CrossTenant-Id: a4e27e3d-bab0-45e8-8942-e64cf9fbd34f X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=a4e27e3d-bab0-45e8-8942-e64cf9fbd34f; Ip=[178.79.136.144]; Helo=[semantical.co.uk] X-MS-Exchange-CrossTenant-AuthSource: CW2PEPF000056BF.GBRP265.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: LO9P265MB7612 Received-SPF: pass client-ip=2a01:111:f403:261b::701; envelope-from=mickey@masteringemacs.org; helo=GBR01-CWX-obe.outbound.protection.outlook.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:282441 Archived-At: Here's a curious one. This is not so much a bug, I think, as a gotcha and perhaps something that I wouldn't mind understanding a bit better. My package creates a number of dynamic commands (think: tempo/skeletons) to expand text. It does so using the common (defalias NAME (lambda () ...)) pattern. 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. This variable can easily get overrun with identical entries if the inattentive programmer does not check if it is already bound. Due to a screwup on my part, I did not `fboundp' check first, which had the odd effect of causing incredible slowdowns when I ran my 600+ ERT test suite. 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. Anyway. Not sure it's a bug; but it caught me out, and as `current-load-list' is rather obscure, I figured I'd at least ask. Thanks! Mickey.