unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Helmut Eller <eller.helmut@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Performance of String Operations
Date: Sun, 11 Oct 2009 17:38:52 +0200	[thread overview]
Message-ID: <m2skdq9bzn.fsf@gmail.com> (raw)
In-Reply-To: e6535800-cf57-4329-a392-4210959abab4@l13g2000yqb.googlegroups.com

* Nordlöw [2009-10-11 08:41+0200] writes:

> Does Emacs contain append/prepend/concat functions for strings that
> modify one of its (first) arguments (for side effects only)?

Emacs has buffers for fast insert/append/prepend.

> 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?

The size of strings is constant an cannot be changed.
Strings are arrays.

> Or does the Emacs compiler optimize such things? Can I somehow
> investigate how Emacs has optimized my lisp code?

M-x disassemble

Helmut


  parent reply	other threads:[~2009-10-11 15:38 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
2009-10-11 14:40 ` Colin S. Miller
2009-10-11 15:38 ` Helmut Eller [this message]
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=m2skdq9bzn.fsf@gmail.com \
    --to=eller.helmut@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).