From: Xah Lee <xahlee@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Performance of String Operations
Date: Sun, 11 Oct 2009 03:05:33 -0700 (PDT) [thread overview]
Message-ID: <22b55022-425b-46a7-860f-0b550bf40d48@f20g2000prn.googlegroups.com> (raw)
In-Reply-To: e6535800-cf57-4329-a392-4210959abab4@l13g2000yqb.googlegroups.com
On Oct 10, 11:41 pm, Nordlöw <per.nord...@gmail.com> 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öw,
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
∑ http://xahlee.org/
☄
next prev parent reply other threads:[~2009-10-11 10:05 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-11 6:41 Performance of String Operations Nordlöw
2009-10-11 10:05 ` Xah Lee [this message]
2009-10-11 14:40 ` Colin S. Miller
2009-10-11 15:38 ` Helmut Eller
2009-10-11 17:29 ` Pascal J. Bourguignon
2009-10-11 20:58 ` John A Pershing Jr
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=22b55022-425b-46a7-860f-0b550bf40d48@f20g2000prn.googlegroups.com \
--to=xahlee@gmail.com \
--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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).