From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: transpose-regions Date: Fri, 23 Mar 2007 18:50:34 -0400 Message-ID: References: <46026277.7060305@gmx.at> <87zm64kau0.fsf@stupidchicken.com> <87ircst5jn.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1174933291 21649 80.91.229.12 (26 Mar 2007 18:21:31 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 26 Mar 2007 18:21:31 +0000 (UTC) Cc: schwab@suse.de, cyd@stupidchicken.com, emacs-devel@gnu.org, rudalics@gmx.at, storm@cua.dk To: rms@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Mar 26 20:21:23 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HVtoo-0004PY-RP for ged-emacs-devel@m.gmane.org; Mon, 26 Mar 2007 20:21:23 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HVtr5-0001P5-2w for ged-emacs-devel@m.gmane.org; Mon, 26 Mar 2007 13:23:43 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HVtr0-0001LA-Mx for emacs-devel@gnu.org; Mon, 26 Mar 2007 14:23:38 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HVtqy-0001Gr-DY for emacs-devel@gnu.org; Mon, 26 Mar 2007 14:23:37 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HVtqy-0001GU-88 for emacs-devel@gnu.org; Mon, 26 Mar 2007 13:23:36 -0500 Original-Received: from bc.sympatico.ca ([209.226.175.184] helo=tomts22-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HVtog-0000E9-6V; Mon, 26 Mar 2007 14:21:14 -0400 Original-Received: from ceviche.home ([70.55.83.113]) by tomts22-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20070326182112.ZXUJ1767.tomts22-srv.bellnexxia.net@ceviche.home>; Mon, 26 Mar 2007 14:21:12 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id F1778B500D; Fri, 23 Mar 2007 18:50:34 -0400 (EDT) In-Reply-To: (Richard Stallman's message of "Fri\, 23 Mar 2007 18\:32\:57 -0400") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.96 (gnu/linux) X-detected-kernel: Solaris 8 (1) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:68629 Archived-At: > Personally, I think the best solution is to rewrite transpose-regions > in Lisp. > The reason it is written in C is to avoid the need to copy either > piece of text into a string temporarily. I can see that, but given the fact that it's only used interactively (where the performance impact is likely to be unnoticeable) or in gnus/deuglify.el and game/tetris.el, I think the that performance gains do not justify the pain and risk of writing and optimizing it in C. Stefan