From: Andreas Schwab <schwab@linux-m68k.org>
To: Leo Liu <sdl.web@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: why is reverse a string in-place so much slower than a vector?
Date: Fri, 25 Apr 2014 13:00:28 +0200 [thread overview]
Message-ID: <87vbtxn06r.fsf@igel.home> (raw)
In-Reply-To: <m3vbtxlpj5.fsf@gmail.com> (Leo Liu's message of "Fri, 25 Apr 2014 17:35:58 +0800")
Leo Liu <sdl.web@gmail.com> writes:
> I guess this is all due to `string_char_to_byte'?
No, it is all due to the variable length nature of the UTF-8 encoding.
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
next prev parent reply other threads:[~2014-04-25 11:00 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-25 8:12 why is reverse a string in-place so much slower than a vector? Leo Liu
2014-04-25 8:17 ` Leo Liu
2014-04-25 8:55 ` Rüdiger Sonderfeld
2014-04-25 9:14 ` Andreas Schwab
2014-04-25 9:35 ` Leo Liu
2014-04-25 11:00 ` Andreas Schwab [this message]
2014-04-26 0:19 ` Leo Liu
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=87vbtxn06r.fsf@igel.home \
--to=schwab@linux-m68k.org \
--cc=emacs-devel@gnu.org \
--cc=sdl.web@gmail.com \
/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.