From: "Michał Kondraciuk" <k.michal@zoho.com>
To: help-gnu-emacs@gnu.org
Subject: Question about memory usage
Date: Mon, 2 Apr 2018 13:57:26 +0200 [thread overview]
Message-ID: <ac3afe6c-a8c1-ab3a-3c9e-a379a8002e5a@zoho.com> (raw)
Hello,
Originally I wanted to report this to bug-gnu-emacs, but it's so basic
that I thought I'd ask here instead.
Basically, when I run the sexp below in emacs -Q, Emacs keeps allocating
a lot of memory. In 10 minutes, it goes from 18 MB to over 200 MB.
(while t
(with-temp-buffer
(setq buffer-undo-list nil)
(insert "a")))
Calling garbage-collect afterwards or even inside the body of the loop
doesn't help (except the loop obviously runs slower, so after 10
minutes, Emacs uses ~100 MB of memory).
So I want to know if this behavior is expected for some reason? Does
Emacs reuse this memory somehow (to make future allocations faster)? I
tested on newest master and 25.3 and the behavior is the same.
next reply other threads:[~2018-04-02 11:57 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-04-02 11:57 Michał Kondraciuk [this message]
2018-04-03 2:16 ` Question about memory usage Óscar Fuentes
2018-04-03 6:28 ` Eli Zaretskii
2018-04-03 12:28 ` Stefan Monnier
2018-04-03 12:40 ` Eli Zaretskii
2018-04-03 12:51 ` Eli Zaretskii
2018-04-03 13:13 ` Stefan Monnier
2018-04-03 14:03 ` Eli Zaretskii
2018-04-03 14:27 ` Stefan Monnier
2018-04-03 15:16 ` Eli Zaretskii
2018-04-03 21:14 ` Stefan Monnier
2018-04-03 17:57 ` Michał Kondraciuk
2018-04-03 18:22 ` Eli Zaretskii
2018-04-03 19:16 ` Michał Kondraciuk
2018-04-04 6:55 ` Eli Zaretskii
2018-04-05 18:06 ` Michał Kondraciuk
2018-04-05 18:40 ` Eli Zaretskii
2018-04-05 18:54 ` Stefan Monnier
2018-04-07 13:15 ` Michał Kondraciuk
2018-04-07 13:26 ` Eli Zaretskii
2018-04-07 15:22 ` Stefan Monnier
2018-04-07 18:39 ` Michał Kondraciuk
2018-04-03 21:18 ` Stefan Monnier
2018-04-04 6:08 ` Eli Zaretskii
2018-04-04 21:45 ` 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=ac3afe6c-a8c1-ab3a-3c9e-a379a8002e5a@zoho.com \
--to=k.michal@zoho.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.
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.