all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: storm@cua.dk (Kim F. Storm)
Cc: emacs-devel@gnu.org
Subject: Re: Improving emacs process performance (for free?)
Date: 27 May 2004 11:02:30 +0200	[thread overview]
Message-ID: <m3y8neutsp.fsf@kfs-l.imdomain.dk> (raw)
In-Reply-To: <8296-Thu27May2004095925+0300-eliz@gnu.org>

"Eli Zaretskii" <eliz@gnu.org> writes:

> > From: storm@cua.dk (Kim F. Storm)
> > Date: 26 May 2004 23:23:21 +0200
> > 
> > The buffer is allocated on the stack (with alloca), so it could be a
> > problem on systems with limited stack size -- do we still have such
> > systems?
> 
> How much limited is ``limited''?  Can you give a quantitative
> estimate?

My change uses extra 9K on the stack in read_process_output.
Since that function can call a filter, which in turn calls
accept-process-output (etc), you may look at perhaps 3*9K
xtra on the stack.

Also, read_process_output calls decode_coding_string which may
allocate 16K on the stack.

So a minimum stack usage would be 3*10+16 = 46KB + what's allocated
elsewhere.  Pretty close to 64K if you ask me :-|

-- 
Kim F. Storm <storm@cua.dk> http://www.cua.dk

  reply	other threads:[~2004-05-27  9:02 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-26 21:23 Improving emacs process performance (for free?) Kim F. Storm
2004-05-27  7:59 ` Eli Zaretskii
2004-05-27  9:02   ` Kim F. Storm [this message]
2004-05-27 13:02     ` Eli Zaretskii
2004-05-27 11:22 ` John Wiegley
2004-05-28  9:17   ` Kim F. Storm
2004-05-27 16:25 ` Andreas Schwab
2004-05-28  9:19   ` Kim F. Storm
2004-05-29 17:03 ` Richard Stallman

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=m3y8neutsp.fsf@kfs-l.imdomain.dk \
    --to=storm@cua.dk \
    --cc=emacs-devel@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.
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.