From: Harald Hanche-Olsen <hanche@math.ntnu.no>
To: help-gnu-emacs@gnu.org
Subject: Re: how to sort words in a line
Date: Tue, 17 Jul 2007 22:12:07 +0200 [thread overview]
Message-ID: <pcops2q6b8o.fsf@shuttle.math.ntnu.no> (raw)
In-Reply-To: f7ivp1$eo4$2@registered.motzarella.org
+ Rainer Stengele <rainer.stengele@online.de>:
| Harald Hanche-Olsen schrieb:
|> You could also pipe the line through the command
|>
|> tr ' ' \n | sort | tr \n ' '
|
| calling external processes to sort a line seems to me quite a little
| overhead.
It all depends. For example, it depends on how often you need to do
this thing. If you do it only very rarely, I would assume that the
savings of your time (seconds? minutes?) is more valuable than the
wasted milliseconds of CPU time. But, your milage may vary, as they
say. Perhaps your time is worthless, and CPU cycles are really
valuable. Lots of people behave like this is so. I fall into the
trap myself from time to time.
--
* Harald Hanche-Olsen <URL:http://www.math.ntnu.no/~hanche/>
- It is undesirable to believe a proposition
when there is no ground whatsoever for supposing it is true.
-- Bertrand Russell
next prev parent reply other threads:[~2007-07-17 20:12 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-17 10:01 how to sort words in a line Rainer Stengele
2007-07-17 10:26 ` Pascal Bourguignon
2007-07-17 13:46 ` Harald Hanche-Olsen
2007-07-17 17:54 ` Rainer Stengele
2007-07-17 20:12 ` Harald Hanche-Olsen [this message]
2007-07-17 17:57 ` Rainer Stengele
2007-07-17 18:07 ` Pascal Bourguignon
2007-07-17 18:20 ` Rainer Stengele
2007-07-17 19:20 ` Thien-Thi Nguyen
2007-07-17 22:43 ` Nikolaj Schumacher
2007-07-18 7:21 ` Mathias Dahl
2007-07-18 19:25 ` Rainer Stengele
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=pcops2q6b8o.fsf@shuttle.math.ntnu.no \
--to=hanche@math.ntnu.no \
--cc=help-gnu-emacs@gnu.org \
/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.