From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#64185: proposal for new function: copy-line Date: Wed, 28 Jun 2023 20:42:10 +0300 Organization: LINKOV.NET Message-ID: <86leg3trew.fsf@mail.linkov.net> References: <4C83E2DA-FE5F-4191-88CD-7E70008C9892@gmail.com> <86o7l66rw8.fsf@mail.linkov.net> <8494C1C8-435A-4817-9FA0-7D0A5F8DEC96@gmail.com> <86a5wnmu3x.fsf@mail.linkov.net> <62289D18-9F94-47E5-8D2B-DBDB35C2E2DB@gmail.com> <86r0pyt9a9.fsf@mail.linkov.net> <86fs6cn42v.fsf@mail.linkov.net> <9383E91E-0F4D-4B54-B999-6A42581CFF95@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2576"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 (x86_64-pc-linux-gnu) Cc: 64185@debbugs.gnu.org, Eli Zaretskii , me@eshelyaron.com, zkanfer@gmail.com To: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jun 28 19:44:39 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 1qEZDa-0000U9-EG for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 28 Jun 2023 19:44:38 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qEZDA-00053A-6S; Wed, 28 Jun 2023 13:44:12 -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 1qEZD1-00051a-Ik for bug-gnu-emacs@gnu.org; Wed, 28 Jun 2023 13:44:07 -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 1qEZCz-0001Vt-Vt for bug-gnu-emacs@gnu.org; Wed, 28 Jun 2023 13:44:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qEZCz-00005Q-Rn for bug-gnu-emacs@gnu.org; Wed, 28 Jun 2023 13:44:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 28 Jun 2023 17:44:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64185 X-GNU-PR-Package: emacs Original-Received: via spool by 64185-submit@debbugs.gnu.org id=B64185.168797422132760 (code B ref 64185); Wed, 28 Jun 2023 17:44:01 +0000 Original-Received: (at 64185) by debbugs.gnu.org; 28 Jun 2023 17:43:41 +0000 Original-Received: from localhost ([127.0.0.1]:51556 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qEZCf-0008WK-74 for submit@debbugs.gnu.org; Wed, 28 Jun 2023 13:43:41 -0400 Original-Received: from relay7-d.mail.gandi.net ([217.70.183.200]:41085) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qEZCc-0008W4-RR for 64185@debbugs.gnu.org; Wed, 28 Jun 2023 13:43:39 -0400 X-GND-Sasl: juri@linkov.net X-GND-Sasl: juri@linkov.net X-GND-Sasl: juri@linkov.net X-GND-Sasl: juri@linkov.net X-GND-Sasl: juri@linkov.net Original-Received: by mail.gandi.net (Postfix) with ESMTPSA id 15F612000A; Wed, 28 Jun 2023 17:43:30 +0000 (UTC) In-Reply-To: <9383E91E-0F4D-4B54-B999-6A42581CFF95@gmail.com> ("Mattias =?UTF-8?Q?Engdeg=C3=A5rd?="'s message of "Wed, 28 Jun 2023 15:17:08 +0200") 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:264230 Archived-At: >> (The only consideration is performance, but probably not worth >> making the code more complex by increasing the size of copied region >> exponentially to avoid inserting a large amount of small chunks one by one.) > > We can certainly do better. I just pushed another 10× improvement, on > top of the previous performance doubling for duplicate-line. Thanks, this is a nice improvement. Too bad you did this on master. This means I can't push the patch that Eli approved to emacs-29 anymore, because whoever will merge emacs-29 to master next time will be forced to resolve the merge conflict, and this is not a trivial task.