From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Dmitry Antipov <dmantipov@yandex.ru>
Cc: Emacs development discussions <emacs-devel@gnu.org>
Subject: Re: [Emacs-diffs] trunk r114117: * buffer.c (drop_overlay):
Date: Mon, 09 Sep 2013 15:41:32 -0400 [thread overview]
Message-ID: <jwvhadtztf1.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <522AAD7A.3030502@yandex.ru> (Dmitry Antipov's message of "Sat, 07 Sep 2013 08:37:14 +0400")
> I'm also thinking about offloading GC with explicit marker freeing.
> For example, save-excursion creates up to 2 markers each time, and
> this is the well-known bottleneck because there may be thousands
> calls to save-excursion per just one basic editing command in cc-mode.
I'm not sure it would be worth the trouble. Maybe a more promising
direction would be to avoid using markers in save-excursion.
In my experience, most save-excursions are used around code which makes
no buffer modifications, in which case plain integers would work just
as well.
So it might be beneficial for save-excursion to be optimistic and use
integers (with some appropriate hooking into maybe
prepare_to_modify_buffer to turn them into markers when needed).
But even there, I'm not sure it would really speed up cc-mode noticeably.
Stefan
prev parent reply other threads:[~2013-09-09 19:41 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <E1VGrmg-0000c9-Jm@vcs.savannah.gnu.org>
[not found] ` <jwvhae1emmw.fsf-monnier+emacs@gnu.org>
2013-09-07 4:37 ` [Emacs-diffs] trunk r114117: * buffer.c (drop_overlay): Dmitry Antipov
2013-09-09 19:41 ` Stefan Monnier [this message]
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=jwvhadtztf1.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=dmantipov@yandex.ru \
--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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
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).