all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
Subject: Re: Accelerating Emacs?
Date: Mon, 31 Oct 2005 23:55:20 -0500	[thread overview]
Message-ID: <87br152d73.fsf-monnier+gnu.emacs.help@gnu.org> (raw)
In-Reply-To: mailman.13061.1130499101.20277.help-gnu-emacs@gnu.org

> The CPU of this machine is Pentium(R) 4 CPU 2.80 GHz, and there is
> 504 MB physical memory, running Windows XP and Emacs 21.3.

That sounds quite reasonable.

> I tried this, Task Manager said Emacs were using 229 636K memory
> by the time I wrote this sentence.

My guess is that most of that memory is in the undo-log.  The undo-log works
well in general, but there are indeed "corner cases" where it ends up using
a lot of memory.

> I found Emacs used more and more memory when generating random data, so
> did when it replacing.  These memory is released after Emacs finishes its
> job.  Is this because Emacs operating buffer residing in memory?

No.  E.g. the undo-log cannot be shrunk before some undo-boundary is
inserted, which only happens later.  You could report your problem via
M-x report-emacs-bug.

> This happens when I am testing a 100MB size file. I go to the beginning
> of the file, press C-SPACE, then go to the end of the file, press M-w.

M-w copies the marked region, so you end up with a 100MB buffer plus
a 100MB string.  100MB thingies is definitely pushing it in Emacs nowadays.
On 64bit machines it may work better, but it's still likely that using Emacs
to edit 100MB files won't work well unless you're careful to use a special
"stripped-down" mode.

> So perhaps I can restate it like this: if Emacs starts to be slow in
> some condition, it is better of using some other tools instead of
> it. And I find it very cool of running vim in Eshell.

Sounds right.  I think it's good practice to complain about those situations
(via M-x report-emacs-bug) so that Emacs maintainers keep it in mind, but
it's clear that Emacs is not designed to edit very large files.  I tend to
use `sed' for that in most cases.


        Stefan

  parent reply	other threads:[~2005-11-01  4:55 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.13061.1130499101.20277.help-gnu-emacs@gnu.org>
2005-10-28 12:08 ` Accelerating Emacs? David Kastrup
2005-10-28 13:43   ` Herbert Euler
2005-10-28 12:49 ` Thien-Thi Nguyen
2005-11-01  4:55 ` Stefan Monnier [this message]
     [not found] <mailman.13033.1130478796.20277.help-gnu-emacs@gnu.org>
2005-10-28  8:59 ` Alan Mackenzie
2005-10-28 18:28   ` Herbert Euler
2005-10-29 10:18     ` Eli Zaretskii
2005-10-29 11:44       ` Herbert Euler
2005-10-29 15:43         ` Eli Zaretskii
2005-10-31  3:26           ` Herbert Euler
     [not found] <mailman.12998.1130466347.20277.help-gnu-emacs@gnu.org>
2005-10-28  2:59 ` Flying Grass
2005-10-28  5:53   ` Herbert Euler
2005-10-28  8:23     ` Eli Zaretskii
2005-10-28 11:31       ` Herbert Euler
2005-10-28 13:13         ` Eli Zaretskii
     [not found]     ` <mailman.13044.1130487836.20277.help-gnu-emacs@gnu.org>
2005-10-28 10:36       ` Per Abrahamsen
2005-10-28  2:25 Herbert Euler
2005-10-28  8:25 ` Eli Zaretskii
2005-10-28 11:38   ` Herbert Euler
2005-10-28 13:16     ` Eli Zaretskii
     [not found] ` <mailman.13045.1130488013.20277.help-gnu-emacs@gnu.org>
2005-11-28  1:09   ` Christopher C. Stacy
2005-11-28  5:21     ` Eli Zaretskii
     [not found]     ` <mailman.17015.1133155279.20277.help-gnu-emacs@gnu.org>
2005-11-28  5:46       ` Pascal Bourguignon
2005-11-28 10:26         ` Thien-Thi Nguyen
2005-12-01  4:43         ` Stefan Monnier

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=87br152d73.fsf-monnier+gnu.emacs.help@gnu.org \
    --to=monnier@iro.umontreal.ca \
    /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.