From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.devel Subject: Re: why is reverse a string in-place so much slower than a vector? Date: Fri, 25 Apr 2014 13:00:28 +0200 Message-ID: <87vbtxn06r.fsf@igel.home> References: <87zjj9n53w.fsf@igel.home> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1398423654 7964 80.91.229.3 (25 Apr 2014 11:00:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 25 Apr 2014 11:00:54 +0000 (UTC) Cc: emacs-devel@gnu.org To: Leo Liu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Apr 25 13:00:47 2014 Return-path: Envelope-to: ged-emacs-devel@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 1Wdds6-0007zW-RN for ged-emacs-devel@m.gmane.org; Fri, 25 Apr 2014 13:00:46 +0200 Original-Received: from localhost ([::1]:57111 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wdds6-0001sW-IQ for ged-emacs-devel@m.gmane.org; Fri, 25 Apr 2014 07:00:46 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38912) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wddrx-0001kx-6A for emacs-devel@gnu.org; Fri, 25 Apr 2014 07:00:43 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wddrq-0006oC-Ty for emacs-devel@gnu.org; Fri, 25 Apr 2014 07:00:37 -0400 Original-Received: from mail-out.m-online.net ([212.18.0.10]:54965) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wddrq-0006o7-OB for emacs-devel@gnu.org; Fri, 25 Apr 2014 07:00:30 -0400 Original-Received: from frontend1.mail.m-online.net (frontend1.mail.intern.m-online.net [192.168.8.180]) by mail-out.m-online.net (Postfix) with ESMTP id 3gFXV52jSTz3hhrr; Fri, 25 Apr 2014 13:00:29 +0200 (CEST) Original-Received: from localhost (dynscan1.mnet-online.de [192.168.6.68]) by mail.m-online.net (Postfix) with ESMTP id 3gFXV52X4yzbcJd; Fri, 25 Apr 2014 13:00:29 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Original-Received: from mail.mnet-online.de ([192.168.8.180]) by localhost (dynscan1.mail.m-online.net [192.168.6.68]) (amavisd-new, port 10024) with ESMTP id 2Oq9zXgNjXm7; Fri, 25 Apr 2014 13:00:28 +0200 (CEST) X-Auth-Info: ON8ppXCcmog79Fbq6j4DDjNE7V5TOjX5Mxhn5TTerzk= Original-Received: from igel.home (host-188-174-222-231.customer.m-online.net [188.174.222.231]) by mail.mnet-online.de (Postfix) with ESMTPA; Fri, 25 Apr 2014 13:00:28 +0200 (CEST) Original-Received: by igel.home (Postfix, from userid 1000) id 519D92C065D; Fri, 25 Apr 2014 13:00:28 +0200 (CEST) X-Yow: NOW, I'm taking the NEXT FLIGHT to ACAPULCO so I can write POEMS about BROKEN GUITAR STRINGS and sensuous PRE-TEENS!! In-Reply-To: (Leo Liu's message of "Fri, 25 Apr 2014 17:35:58 +0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x X-Received-From: 212.18.0.10 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:171626 Archived-At: Leo Liu 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."