From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andrew Cohen Newsgroups: gmane.emacs.bugs Subject: bug#64391: more info Date: Sat, 01 Jul 2023 12:59:20 +0800 Message-ID: <87r0psb51z.fsf@ust.hk> References: <877crkcwrm.fsf@ust.hk> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19223"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= , Gregory Heytings To: 64391@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jul 01 07:00:27 2023 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 1qFSif-0004l0-Mb for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 01 Jul 2023 07:00:27 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qFSiN-0002J7-7Y; Sat, 01 Jul 2023 01:00:07 -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 1qFSiJ-0002Id-Mi for bug-gnu-emacs@gnu.org; Sat, 01 Jul 2023 01:00:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qFSiJ-0004X0-Cj for bug-gnu-emacs@gnu.org; Sat, 01 Jul 2023 01:00:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qFSiI-0005dz-Nn; Sat, 01 Jul 2023 01:00:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <877crkcwrm.fsf@ust.hk> Resent-From: Andrew Cohen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bugs@gnus.org Resent-Date: Sat, 01 Jul 2023 05:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64391 X-GNU-PR-Package: emacs,gnus Original-Received: via spool by 64391-submit@debbugs.gnu.org id=B64391.168818757521624 (code B ref 64391); Sat, 01 Jul 2023 05:00:02 +0000 Original-Received: (at 64391) by debbugs.gnu.org; 1 Jul 2023 04:59:35 +0000 Original-Received: from localhost ([127.0.0.1]:56143 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qFShq-0005ch-Ob for submit@debbugs.gnu.org; Sat, 01 Jul 2023 00:59:35 -0400 Original-Received: from mail-os0jpn01on2124.outbound.protection.outlook.com ([40.107.113.124]:60162 helo=JPN01-OS0-obe.outbound.protection.outlook.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qFShn-0005cQ-Es for 64391@debbugs.gnu.org; Sat, 01 Jul 2023 00:59:33 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=OlhhYe3bV7m5342UMqKfUtVBJJ+cldHRHJvnm8bUfTXI8fqPSdWeoXhRdWFIZPeft1oCmdx2d8DumUxyPsmmbTVMdQ8E6ZHHqtSJGVJV8CBCwBsQjcv3UV1yC3MXU/iWN9cGM5QRRtigKYSotnFvEcNzleJYni+y9F5nomcUe2QChjao56q9+R9TAxf6mksWvyz7bO05iaSmmmsMeo5u0pTSMb0BZp6eGva+RpmiQdyo8vCgHUZZ53CfsPOdDvkQ7Smxo6/t2n3ogHv2cM5zQnIdEyY6xQY8Z+4isL7hfXRtk07smGtlsYphXerNwtJWZUfb7wJ8nIgzqmVTFNxzEQ== 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=HpKZZ4riTJqfl/ZDxLaslJOAnfI90U4iWFCHvoWBe8g=; b=ldvtklq57oy0/ZOkE712+iA0EQiOgrZyXEgtDBcRX5pRqIjaP6hrANLx9rp8FQo+svu+9S4lSLF3l5RM8O324tGHiE9ZR4w4rGO+fGpibUgCy4n3kbzzMeviVATtrZ/9oYbmvblHdxq74pM0zJjL0tiZf8KVWLDSsLWArj4RxkPYIU+V6h6VOyXrHurkrxqEbaOYDkGPEQp5zOvt3cpSVcXKDJ9elXUH3ZUmCLi5lF0PP5DMGc2xWl1DP6CR8lZFzx0tzKgj8cCvvpy9P8EUNvNLwL8ho798ZrVIHuKNa93OFgclw/AKLp/WtiDBDLBOn4GRLoCag2Bh5L4YKqMq5g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=ust.hk; dmarc=pass action=none header.from=ust.hk; dkim=pass header.d=ust.hk; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ust.hk; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=HpKZZ4riTJqfl/ZDxLaslJOAnfI90U4iWFCHvoWBe8g=; b=xcaZKVx0gdY6OsBoerXN9qSmA7+Un8ydTcgqzD09bo8m6f2/e5cxUPBojZY+HQq3vDQyEngjan9fdSeXG6mAZXsOj1yok+662mhm6pLv3wc5t7MdOOFcoDNFR2HwZsk+WXBv7rcDq7FcOXFSTyVZ5Wf559AwOolQoSBqB3PkVU6PdyYVnEpuLft5VfztPDjOGwv6v+tfkWTOPTOE0bZlXquvP+tGtlooCvjS4UBkhet4DwkqLqnoLkQyw8qUssPfLoJUTK21uxRlUS5HI/X3X9ym8wsam4mGLMJHGAeloPyem3gpoyD1c6RyjduVjkR7izCrDg6EJP71RoLXV91A4w== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=ust.hk; Original-Received: from OS3P286MB1877.JPNP286.PROD.OUTLOOK.COM (2603:1096:604:1bf::11) by TYCP286MB2382.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:188::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6544.19; Sat, 1 Jul 2023 04:59:23 +0000 Original-Received: from OS3P286MB1877.JPNP286.PROD.OUTLOOK.COM ([fe80::f9dd:5f78:1a2e:5b72]) by OS3P286MB1877.JPNP286.PROD.OUTLOOK.COM ([fe80::f9dd:5f78:1a2e:5b72%6]) with mapi id 15.20.6544.024; Sat, 1 Jul 2023 04:59:23 +0000 X-ClientProxiedBy: PS2PR06CA0009.apcprd06.prod.outlook.com (2603:1096:300:56::21) To OS3P286MB1877.JPNP286.PROD.OUTLOOK.COM (2603:1096:604:1bf::11) X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: OS3P286MB1877:EE_|TYCP286MB2382:EE_ X-MS-Office365-Filtering-Correlation-Id: 1d2a13e5-0823-4b3f-0e6f-08db79efefae X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: bACcyAA2R6nV3J4Vaqkg0zvmSxCMcKN2MwC/uJZAYCctWnImkgQr8Vdj2eILun4jz79iE8mH0inY+VKPawPkr7rdrWNwOSM5Sabg0VP7xQJaNiz9lbvreSeV42BH4Qtssh/PXeameP2SI+Ok9w7is2xiSsa/DA3cpBBBI3zHj3UJfnbTeoJzrtA1bpE6CazZTq1PuTKt+Y6HWusXGSlRlxh5P5Wl4EE/DHD1r+KWlhqoaktLK+uvJci81KXz4SNpLujY9oVW7ToHk24tfpl20WiIhbDKVz1wgT3DnWA9Zk+y+8aL8H0mlVV3NR3M0CcExOOz957IrGu5LeRsteSz7M5siqx8LUzfvoe7fpSSj4dopxh+QseQUFGvWjmu/O0Q+oZRk01Ly5nokOUNlyTprRxDb9rTDAH6eAQScOkWr+/L77O1Hvv8vKcoJ8ZLWDJA7+E2mVdPZvcPTMb+JyWCaw81tf8Mk28Mj4njRtRkosY8ZAAZeEzDKcLHhBiR3QUs9BPEi3Z00vdeJWItT9wdn+Bqd+N6tj+U0MxP976PGwnHxzKdQwtjwa6sz0XkeM8T X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:OS3P286MB1877.JPNP286.PROD.OUTLOOK.COM; PTR:; CAT:NONE; SFS:(13230028)(4636009)(346002)(136003)(366004)(376002)(396003)(39860400002)(451199021)(6506007)(786003)(316002)(66556008)(66476007)(66946007)(38100700002)(6916009)(4326008)(6512007)(2616005)(83380400001)(186003)(26005)(478600001)(54906003)(3480700007)(4744005)(2906002)(8676002)(8936002)(7116003)(36756003)(5660300002)(6486002)(86362001)(41300700001); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: tNiIVF4uGN3zDNUpbk0TOyHmWYlyJRlPFTa43XxVxU9yKMXMRBXkseqVCGa3lW++SdMFZjuItoS6SE3+DPGHdoFlpd7UbChAfoIMP4Ev1OrV4gAYAkRYk8+1YjyfFx7W9k5d9rwB+yigCf1M8lnQAnruFF0MwQ5sSg6xDYcyXiaz8fa5lbnGP4VEklOzaSOq/usBivr6YA+T/rmgNcCB8ceHRSCC/djU9z3LKhgkYod36gVQtfIYGhjOEh2IsnYCrZGTZv7DAJplpQdfvm0aPrNquyBm/uftx3w1eisDFob8moaJ6ggLA8ko5BlPZL7p9I7qkmIqCkYTBywQz4FWLys1AzDYWY7vO3FDDuf4PKmVWKzuqTEQcfOQM8BnReXQE1ZLwIhioEiFQeHSoOPf4EolxppV431kpnBsyMxo2TuPidC9AxIdFZipPz/dnJvZIt0ke2TQcQGB4plUu+tqyjPtgHN2BfIxLOokZq3kd566FP8JS+KRppiTF0p6FM/hAaJ2dlrIb+nZv+nm2rmKV8/qcGUYIGvMaF5f2xGlz9zIR+wdgWDhZjDG0ly9IdJ3mCZwpVbFff9DFmgNnariau7tp7TjnqPKl9peeyiZSdMWeZMYfeJDv8HNh7uN82v1oN4jR3Zo69bI0NoOIu8U4cgZsEKan0Bnjy8qQtnVyAefZJpa4k4dTeThanPsv5BMXwbx3b9oQLx9IRboqyJkmmbOncwTa/bhNdEA+Y+hAdObAvEv21P7XHHo2I sSqTH34zjJwPNCUqJNFul6C5q1qnE3oOOc3/RI0FgqdUDA7avPS8mcCCjNpRp7X767A6b8I5Md6DYG+vNnPfaWp/LYLIxzsRnX X-OriginatorOrg: ust.hk X-MS-Exchange-CrossTenant-Network-Message-Id: 1d2a13e5-0823-4b3f-0e6f-08db79efefae X-MS-Exchange-CrossTenant-AuthSource: OS3P286MB1877.JPNP286.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Jul 2023 04:59:22.9964 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: c917f3e2-9322-4926-9bb3-daca730413ca X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: Z8ztR/YXQzo+NkYq2GxuG12Z+9b0I8wNMj2vaz7agHr5EVWdgBcc3QB6Y3bFaqiD X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYCP286MB2382 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:264350 Archived-At: Mattias had flagged this code at line 2948 in editfns.c as a likely culprit. /* Record the accessible range of the buffer when narrow-to-region is called, that is, before applying the narrowing. That information is used only by internal--label-restriction. */ Fset (Qoutermost_restriction, list3 (Qoutermost_restriction, Fpoint_min_marker (), Fpoint_max_marker ())); Just for fun I simply commented it out (since the test code doesn't use labeled restrictions) and ran the test code, and the problem disappears: Emacs 30.0.50 Modify after narrowing: 0.076 s elapsed, 0 GCs, 0.000 s GC, 0.076 s non-GC Modify before narrowing: 0.070 s elapsed, 0 GCs, 0.000 s GC, 0.070 s non-GC -- Andrew Cohen