From: Ivan Shmakov <ivan@siamics.net>
To: 19896@debbugs.gnu.org, asparagus@comcast.net
Subject: bug#19896: 23.1; reverse-region is slow compared to sort-columns
Date: Wed, 18 Feb 2015 18:29:08 +0000 [thread overview]
Message-ID: <873863845n.fsf@violet.siamics.net> (raw)
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)")
>>>>> asparagus <asparagus@comcast.net> 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) ‘reverse’ 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’t 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 “reverse” option is ‘-r’.
[…]
--
FSF associate member #7257 http://boycottsystemd.org/ … 3013 B6A0 230E 334A
next prev parent reply other threads:[~2015-02-18 18:29 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1372534272.5818344.1424278471675.JavaMail.zimbra@comcast.net>
2015-02-18 17:35 ` bug#19896: 23.1; reverse-region is slow compared to sort-columns asparagus
2015-02-18 18:29 ` Ivan Shmakov [this message]
2015-02-18 19:01 ` Eli Zaretskii
2015-02-18 19:13 ` Ivan Shmakov
2015-02-18 19:29 ` Eli Zaretskii
[not found] ` <1358494426.5913572.1424285832847.JavaMail.zimbra@comcast.net>
2015-02-18 19:19 ` bug#19896: asparagus
[not found] ` <215096857.10629626.1424972910085.JavaMail.zimbra@comcast.net>
2015-02-26 17:53 ` bug#19896: Please modify documentation to close this bug asparagus
2015-04-19 0:49 ` Glenn Morris
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=873863845n.fsf@violet.siamics.net \
--to=ivan@siamics.net \
--cc=19896@debbugs.gnu.org \
--cc=asparagus@comcast.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.