emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Emacs-diffs] trunk r114117: * buffer.c (drop_overlay):


From: Stefan Monnier
Subject: Re: [Emacs-diffs] trunk r114117: * buffer.c (drop_overlay):
Date: Mon, 09 Sep 2013 15:41:32 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]