From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Xah Lee Newsgroups: gmane.emacs.help Subject: Re: Performance of String Operations Date: Sun, 11 Oct 2009 03:05:33 -0700 (PDT) Organization: http://groups.google.com Message-ID: <22b55022-425b-46a7-860f-0b550bf40d48@f20g2000prn.googlegroups.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1255324777 28930 80.91.229.12 (12 Oct 2009 05:19:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 12 Oct 2009 05:19:37 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Oct 12 07:19:29 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MxDJg-0006Aw-HP for geh-help-gnu-emacs@m.gmane.org; Mon, 12 Oct 2009 07:19:28 +0200 Original-Received: from localhost ([127.0.0.1]:54906 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MxDJf-0001Gj-T6 for geh-help-gnu-emacs@m.gmane.org; Mon, 12 Oct 2009 01:19:27 -0400 Original-Path: news.stanford.edu!usenet.stanford.edu!postnews.google.com!f20g2000prn.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 32 Original-NNTP-Posting-Host: 76.102.12.87 Original-X-Trace: posting.google.com 1255255533 8563 127.0.0.1 (11 Oct 2009 10:05:33 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Sun, 11 Oct 2009 10:05:33 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: f20g2000prn.googlegroups.com; posting-host=76.102.12.87; posting-account=bRPKjQoAAACxZsR8_VPXCX27T2YcsyMA User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US) AppleWebKit/532.0 (KHTML, like Gecko) Chrome/3.0.195.25 Safari/532.0, gzip(gfe), gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:173739 X-Mailman-Approved-At: Mon, 12 Oct 2009 01:17:22 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:68864 Archived-At: On Oct 10, 11:41 pm, Nordl=C3=B6w wrote: > Does Emacs contain append/prepend/concat functions for strings that > modify one of its (first) arguments (for side effects only)? > > If so, why not?: Isn't such a function crucial to the performance of a > language, regarding that strings is such a common object type? > > Or does the Emacs compiler optimize such things? Can I somehow > investigate how Emacs has optimized my lisp code? > Hi Nordl=C3=B6w, i don't quite understand your question. > modify one of its (first) arguments ? > (for side effects only)? ? you mean modify a variable fed to the string function, or something like that? functional languages don't do that in general. Xah =E2=88=91 http://xahlee.org/ =E2=98=84