From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ivan Shmakov Newsgroups: gmane.emacs.bugs Subject: bug#19896: 23.1; reverse-region is slow compared to sort-columns Date: Wed, 18 Feb 2015 18:29:08 +0000 Message-ID: <873863845n.fsf@violet.siamics.net> References: <1372534272.5818344.1424278471675.JavaMail.zimbra@comcast.net> <758739999.5853607.1424280942368.JavaMail.zimbra@comcast.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1424284229 3844 80.91.229.3 (18 Feb 2015 18:30:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 18 Feb 2015 18:30:29 +0000 (UTC) To: 19896@debbugs.gnu.org, asparagus@comcast.net Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Feb 18 19:30:12 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YO9Nz-0005A8-Ld for geb-bug-gnu-emacs@m.gmane.org; Wed, 18 Feb 2015 19:30:11 +0100 Original-Received: from localhost ([::1]:52221 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YO9Nz-00059G-32 for geb-bug-gnu-emacs@m.gmane.org; Wed, 18 Feb 2015 13:30:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51689) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YO9Nv-00055w-7R for bug-gnu-emacs@gnu.org; Wed, 18 Feb 2015 13:30:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YO9Nr-00085J-TK for bug-gnu-emacs@gnu.org; Wed, 18 Feb 2015 13:30:07 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:56760) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YO9Nr-00084Q-El for bug-gnu-emacs@gnu.org; Wed, 18 Feb 2015 13:30:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YO9Nq-0005F3-Ru for bug-gnu-emacs@gnu.org; Wed, 18 Feb 2015 13:30:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Ivan Shmakov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 18 Feb 2015 18:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19896 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 19896-submit@debbugs.gnu.org id=B19896.142428416020073 (code B ref 19896); Wed, 18 Feb 2015 18:30:02 +0000 Original-Received: (at 19896) by debbugs.gnu.org; 18 Feb 2015 18:29:20 +0000 Original-Received: from localhost ([127.0.0.1]:47999 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YO9NA-0005Dh-2z for submit@debbugs.gnu.org; Wed, 18 Feb 2015 13:29:20 -0500 Original-Received: from fely.am-1.org ([78.47.74.50]:44429) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YO9N7-0005DX-5R for 19896@debbugs.gnu.org; Wed, 18 Feb 2015 13:29:18 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=siamics.net; s=a2013295; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:Sender:References:Subject:To:From; bh=qRBpfBnxeFxI+1J0/W/3KNKO3JdEs5gt+72dhSZ3lCQ=; b=PBomljJAx72zA5Z2g+Aa8bLQnhYVta/Gt30Pua3XKkzkPru1Uy9SKqoYpOKj7FqRKIvLXH1q9koxh8ew+7byv1gZro1tvxDK681JUdMhCLXXzy96Idg0vqT61OK9G5yRyXCY/GxVJ+Hc7mIY3TkDROjEyzGqUkckbHQnj9DYvk0=; Original-Received: from [2a02:2560:6d4:26ca::1:1d] (helo=violet.siamics.net) by fely.am-1.org with esmtps (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1YO9N5-0001WT-RH; Wed, 18 Feb 2015 18:29:15 +0000 Original-Received: from localhost ([::1] helo=violet.siamics.net) by violet.siamics.net with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1YO9Mz-000210-0H; Thu, 19 Feb 2015 01:29:09 +0700 Mail-Followup-To: 19896@debbugs.gnu.org In-Reply-To: <758739999.5853607.1424280942368.JavaMail.zimbra@comcast.net> (asparagus@comcast.net's message of "Wed, 18 Feb 2015 17:35:42 +0000 (UTC)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 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.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:99553 Archived-At: >>>>> asparagus writes: > The emacs manual recommends 'M-x reverse-region' as a companion to > 'M-x sort-columns' to achieve a descending-order column sort. This could be a bug in the manual, as sort-columns has an optional (prefix) =E2=80=98reverse=E2=80=99 argument since at least 1990 (d32200ac.) > However, for large regions (> 100k lines), 'M-x reverse-region' is > noticeably slower than 'M-x sort-columns', making descending sort > much slower than ascending sort. I don=E2=80=99t seem to see this on the current master; at a glance, M-x reverse-region takes less time to complete than M-x sort-columns. The current stable version of Emacs is 24.4, with the pretest for 24.5 being available since 17th [1]. Could you please check if this issue also manifests with either of these versions? TIA. [1] news:87mw4c6gjn.fsf@petton.fr http://permalink.gmane.org/gmane.emacs.devel/183187 > A workaround on linux: use 'C-u M-x shell-command-on-region' with tac > (the opposite of cat) instead of using 'M-x reverse-region'. On a GNU system (as well as on any other system featuring GNU Coreutils), it should be possible to just use sort(1) for the purpose. For instance, the =E2=80=9Creverse=E2=80=9D option is =E2=80= =98-r=E2=80=99. [=E2=80=A6] --=20 FSF associate member #7257 http://boycottsystemd.org/ =E2=80=A6 3013 B6A0= 230E 334A