From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Newsgroups: gmane.emacs.bugs Subject: bug#72830: Big rectangular selections are slow Date: Sun, 22 Sep 2024 18:22:04 +0200 Message-ID: References: <3F6C6CAB-8CD1-4336-B1D1-949E716139FE@gmail.com> <1B4E9D0B-2223-42D9-BA22-17A5F6F49F84@gmail.com> <0D0565B4-EF53-43B6-9B33-7EE1600E1AD3@gmail.com> <5F6C5DCE-88F0-446D-8CBD-5E9EE26FFFC6@gmail.com> <3413563D-0343-4764-8D44-DAE3D3642A80@gmail.com> Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.15\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1885"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Michael Heerdegen , Eli Zaretskii , 72830@debbugs.gnu.org, Juri Linkov To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Sep 22 18:24:13 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 1ssPNc-0000Mr-WF for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 22 Sep 2024 18:24:13 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ssPNC-0003Hb-HJ; Sun, 22 Sep 2024 12:23:46 -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 1ssPN7-0003HF-SD for bug-gnu-emacs@gnu.org; Sun, 22 Sep 2024 12:23:42 -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 1ssPN7-0001UX-90 for bug-gnu-emacs@gnu.org; Sun, 22 Sep 2024 12:23:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=References:Date:In-Reply-To:From:Mime-Version:To:Subject; bh=8KGy3bwBSQFPH/vh+W4VCtcG9AcOhej8Fssrnnrudnc=; b=amBtfvXS2K8oGJUjhpkfJ0+ZEFlzH3YORPbNHRsEasI3ZvtjUoal8Fw9I+X1ChV2Dv2g6mSIfmR0dMW0hoQY+ke53f8MfOjYoBTkxHe2K9tN01GwussF3cIGSCEbuBAJoMc8EGUQJndPG709p4a3MS3pcdJqXxzEIGLuqBBOfssWy/Fq0ZNNPnZV764kG3laOTVfwxMrUbFxA3f3s8iBVBSITFajKjxyPBF1PUSFf4fHk6hUu6hGy0fhpkmpyyD5EvcG8aAYxVSb77gwx1r5l/s4+aLy4VqIAuGckVja7F+hvFTfsEoU/DIK6AORa+Hf5r0hp6HXYmX+y4B4YaCLAA==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ssPNS-0004OJ-4R for bug-gnu-emacs@gnu.org; Sun, 22 Sep 2024 12:24:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 22 Sep 2024 16:24:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 72830 X-GNU-PR-Package: emacs Original-Received: via spool by 72830-submit@debbugs.gnu.org id=B72830.172702221816846 (code B ref 72830); Sun, 22 Sep 2024 16:24:02 +0000 Original-Received: (at 72830) by debbugs.gnu.org; 22 Sep 2024 16:23:38 +0000 Original-Received: from localhost ([127.0.0.1]:42687 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ssPN3-0004Nd-NA for submit@debbugs.gnu.org; Sun, 22 Sep 2024 12:23:38 -0400 Original-Received: from mail-lf1-f44.google.com ([209.85.167.44]:59789) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ssPN0-0004NM-5B for 72830@debbugs.gnu.org; Sun, 22 Sep 2024 12:23:36 -0400 Original-Received: by mail-lf1-f44.google.com with SMTP id 2adb3069b0e04-53653ee23adso3098482e87.3 for <72830@debbugs.gnu.org>; Sun, 22 Sep 2024 09:23:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1727022126; x=1727626926; darn=debbugs.gnu.org; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:sender:from:to:cc:subject :date:message-id:reply-to; bh=8KGy3bwBSQFPH/vh+W4VCtcG9AcOhej8Fssrnnrudnc=; b=YuqGdv1lV6cQp8B53Yie1t5T3j9cpL0iQDrr2TO0+hOOkuGWZWcvZ9Dpqg7rMZDKJU mmWoNbKreoWqBvCLBZUU/7FiuROJCzQMWhGRUYcLYRBh6yGBkhShKSASDTbn+Siwyakb luJklV5BNbbrEHsJT7xdA213MjsXS6BJwAdpk2TkNnK2Aw+elWRynsvy0tKpbJy5gs9D HCqQ+6fLjFY/o/KvTgLDVE+LeiDqX9uStrQJcZOnj3KtxlgfeMcSRFzJpDnXcj7LIvmH dJ0B2cU8R+iRtr0xkHOkx+EY8vAxV9my6nxSWS9+l8aEhB8RLW1F23r81qy8ghEvh3nb rSeA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727022126; x=1727626926; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:sender:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=8KGy3bwBSQFPH/vh+W4VCtcG9AcOhej8Fssrnnrudnc=; b=OTJg6GFwzm08gbrX5k0t7PfyHzIywmvG/d1PR2gb0spizn1iKe3FkVbefzEohhfHrL WvSWSlPJ3eKfg3aRoyJvic9cO/gMRHHtqR6I4NNB1+2i9kbjWFBEoEG9W5Wl2JH+f2IR 5CYLujo9wjDcjjHNuqTKh39MWz/0noVtKt6XRbaRQo3HQsQ3m71xsHalW358YypVqN1H 9QkZhf4kYyzUA0uKN/9E8lV7aTCkO2xviMKd2mxUPZmSbFBlWb9ieHmcxoU50bZkGSSv iZtcqzO1OjVtO/AJRoi20hDKQKZqPzEJt6X6vYlBWh4cPteiJyVt2xb9/zmId7BWebBg V5rQ== X-Forwarded-Encrypted: i=1; AJvYcCWFG6oqudNevzVYKCQRP8qzrxY9t1XXyRgMjn0SdOIWwmXqjQ76SBnb+mY71jmP4Vu/y0ZR0Q==@debbugs.gnu.org X-Gm-Message-State: AOJu0YyDVZ9M9wZTnjXIfmfdozZq27k1G2tB3b61lAEr0CEM0zYGjPJn ZJUkqQz/nkttregUb2zJAv9Naweq1tib3xjF2J5AHmsVB6lxsDF3 X-Google-Smtp-Source: AGHT+IEvnZ3JIDXg5LeaaY8ubEfOAM1RzMnSEAA70ze5Ws/w23gqbAYYqtqyjdHWN4SlnfB8M963EQ== X-Received: by 2002:a05:6512:1107:b0:52c:dd3d:85af with SMTP id 2adb3069b0e04-536ad17d3ecmr3802799e87.25.1727022125868; Sun, 22 Sep 2024 09:22:05 -0700 (PDT) Original-Received: from smtpclient.apple (c188-150-191-82.bredband.tele2.se. [188.150.191.82]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-53687096909sm2958623e87.163.2024.09.22.09.22.04 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 22 Sep 2024 09:22:05 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.3654.120.0.1.15) 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:292240 Archived-At: 22 sep. 2024 kl. 17.32 skrev Stefan Monnier : > Hmm... I thought your complaint about the cost of > `select-active-regions` was due to the cost being too high in step > 2 (which would indicate that the code does not behave quite like the > design I described, and would thus be a simple bug we should fix). >=20 > Are you saying that when you said: >=20 > - `select-active-regions`: as mentioned, it slows down rectangle > selection massively ... >=20 > you were talking about the slowdown imposed in step 4 rather than in > step 2? Sorry if I've lost track with your step numbering, but the problem is = still that we extract and retain the selected text both at selection and = each incremental modification of it. So the extraction needs to be delayed until either requested by the X = server or locally by mouse-yank-primary. This means that we need to = decide whether it would be a problem to do so, as the buffer may have = changed between the selection and text extraction. (I think we shouldn't = bother preserving PRIMARY data across buffer modification.)