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: Fri, 20 Sep 2024 14:53:32 +0200 Message-ID: <0D0565B4-EF53-43B6-9B33-7EE1600E1AD3@gmail.com> References: <3F6C6CAB-8CD1-4336-B1D1-949E716139FE@gmail.com> <1B4E9D0B-2223-42D9-BA22-17A5F6F49F84@gmail.com> Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.15\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22237"; 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 Fri Sep 20 14:55:14 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 1srdAH-0005cZ-W4 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 20 Sep 2024 14:55:14 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1srd9r-0003OF-FX; Fri, 20 Sep 2024 08:54:47 -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 1srd9n-0003Nq-K1 for bug-gnu-emacs@gnu.org; Fri, 20 Sep 2024 08:54:44 -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 1srd9n-0000UQ-AS for bug-gnu-emacs@gnu.org; Fri, 20 Sep 2024 08:54:43 -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=07o8ja0OVMYGWHezKApKJ10IXqKU74punu6rThquNT0=; b=af5XSQuopwefY3em1tj33wPkZBtQrSemR2qIzg0nOvEsNnLSyZegwnGMuxULVls5eV7BnAW5BZsBR7rDlRFAf1lR9TLGfhK82aRBOcEDhBUPGhT+VLbY+lDc+MYAI8kTPK0xSzJB5FPsasPop40rRVYY17FXC3xH6szSBJXHfyXmkrSeffqAWohkacTA9eF0JlKQjKgRCWsifxrlzI+iYCedd2rN3aOZo4achdX8oJg2GfZA90VKffS+BlUnJ7/Crp6SXv3T3K9HJt9dXAxz7giAT6wlyZmO1CeMjS8m6C3ajKN6p2DLIsxwbhkvQDv4KPWRdqkTWa0icT6+via1iw==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1srdA6-0000V0-1X for bug-gnu-emacs@gnu.org; Fri, 20 Sep 2024 08:55: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: Fri, 20 Sep 2024 12:55: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.17268369011911 (code B ref 72830); Fri, 20 Sep 2024 12:55:02 +0000 Original-Received: (at 72830) by debbugs.gnu.org; 20 Sep 2024 12:55:01 +0000 Original-Received: from localhost ([127.0.0.1]:34339 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1srdA5-0000Ua-0t for submit@debbugs.gnu.org; Fri, 20 Sep 2024 08:55:01 -0400 Original-Received: from mail-lf1-f51.google.com ([209.85.167.51]:61509) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1srdA2-0000UK-QR for 72830@debbugs.gnu.org; Fri, 20 Sep 2024 08:54:59 -0400 Original-Received: by mail-lf1-f51.google.com with SMTP id 2adb3069b0e04-53655b9bbcdso2408821e87.2 for <72830@debbugs.gnu.org>; Fri, 20 Sep 2024 05:54:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726836814; x=1727441614; 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=07o8ja0OVMYGWHezKApKJ10IXqKU74punu6rThquNT0=; b=IR+4dAsaTyeXY5FLg4QWN8HmYAyLvbSG6QKuHd7FBNIsstHr+S9vn/oQAL5Mapz+Xd A6L/o59nsKYyeMHy8TDpa5zLFgBnWmOzMNjZgUzQoNHgPTuVKA/URoWrxbiBVWnq229i 3HRaCJsKgnHt8s5EWqkLyju+XqBl6r88M/LAavq17OmiYlAzoq/22obI9+DwPVxgKf1N DbiC/B6JqMDhpGzTOdtYx4xfAcWqaqE7ZjrgJ1UIp7NN77d2N7z2Zu9LLgcfLwHgQ4c/ DKvLJGHF0A2X8JiuaU0YO5Yvb+FcX/bmINXI4r5jv2v75MtsJefyjVt1B/rzmvjrIt9O kHiw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726836814; x=1727441614; 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=07o8ja0OVMYGWHezKApKJ10IXqKU74punu6rThquNT0=; b=QFg3HRrF/DnqnUWEbLa1c03CC6sYmXaf/PXaGLL/94p2AH7JypQ+jsxj4DG29grg/A o86l3CKyorsB9tPblBR6IkwnzDvibBHqUqYSQALtnA+n3tmj9kpYFg4wO310Vm2RIpQT BAb+RJeqE2ANCDZdY7tdZOr9OsbgFW2RsbepMoN2MxROcUHHiK2A8CNWpIewY1UtQN10 7/hNcRG8BkyNDymwfOPHKCBsgQv9nkqqQ0ZrELPIh15cIJMAAOK3WFrDbMZY36HPyiqI tTTYgMfnsNTqVkvPq/DlAjxYxTGyl3TKXPrEhcPIyhuO70xyCUdIGO16v6Cw5Gsi88iL I7jw== X-Forwarded-Encrypted: i=1; AJvYcCVeGEU+R0iD8zjhuSFjyUSp7fBzm/zjZ0xu70S2PMTWew5pxKv229Ujnh1VYKUiKXDRdx4OOQ==@debbugs.gnu.org X-Gm-Message-State: AOJu0YzPr8z2aJ+RHSxcDtCjTd2rKq2bAv5Kd6OTX6gIkeKJG/SxZgON KkEmQEyvBrrYo1X4Q/ifTrAbfW/HhG9B7SN/OgXcI+osHWdK6soA X-Google-Smtp-Source: AGHT+IGwfOUwMPGQMKp6GehxGSUR0vHAhk7LmOsBM43J1KeSDPtMAaHpQz6+Cb9vq42X7Ti1RDQZHg== X-Received: by 2002:ac2:4e09:0:b0:532:fdba:e7bc with SMTP id 2adb3069b0e04-536ad3f168fmr1405430e87.57.1726836813597; Fri, 20 Sep 2024 05:53:33 -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-536870a89d7sm2179535e87.239.2024.09.20.05.53.32 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 20 Sep 2024 05:53:33 -0700 (PDT) In-Reply-To: <1B4E9D0B-2223-42D9-BA22-17A5F6F49F84@gmail.com> 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:292113 Archived-At: 30 aug. 2024 kl. 17.20 skrev Mattias Engdeg=C3=A5rd = : > I think the patch is good enough for master. And it has now been pushed. To recap, remaining concerns: - `select-active-regions`: as mentioned, it slows down rectangle = selection massively and is alien to non-X11 platforms so I'd suggest it = be set to nil by default on macOS and Windows at least. Not sure what to = do on TTY frames. For that matter, on X11 it seems strange to copy the entire selection = each time it is made or modified even slightly; PRIMARY selection data = isn't sent to the server until actually requested. - Rectangle operations other than selection are still very slow. This = isn't quite as big a problem but still annoying. Both `move-to-column` = and `line-end-position` are unexpectedly expensive here. (And shouldn't = rect.el use `pos-eol` instead? It's not much faster, though.) - There are some mostly theoretical cases when the current rectangular = selection code produces ugly results. I don't think they are likely to = occur in practice but would be happy to work with someone who thinks he = or she can do better.