[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [RFC, experimental] save_{excursion,restriction}
From: |
Stefan Monnier |
Subject: |
Re: [RFC, experimental] save_{excursion,restriction} |
Date: |
Mon, 23 Jul 2012 19:45:44 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) |
> It's worth trying to redesign save-restriction and save-excursion to avoid
> allocating Lisp data. I tried some hacks for save-excursion, and it's quite
> surprising: initially, running (while t (scroll-up) (sit-for 0.05)) over
> just loaded xdisp.c with font-lock enabled asks for 600 GCs, and with this
> patch it's just 350.
save-restriction should be fairly rare (and if it's not, that's
something we should fix), but for save-excursion I'm not that surprised.
BTW, could you resend your patch but changing it so the new
save_excursion_save/save_excursion_restore replace the old one directly
in the text, so the patch hunks show what is changed and what
stays unchanged?
Also, you need to mark the `excursions' field during GC.
Stefan
PS: Another source of slowdown for save-excursion is the unchain_marker call.
- [RFC, experimental] save_{excursion,restriction}, Dmitry Antipov, 2012/07/23
- Re: [RFC, experimental] save_{excursion,restriction},
Stefan Monnier <=
- Re: [RFC, experimental] save_{excursion,restriction}, Dmitry Antipov, 2012/07/24
- Re: [RFC, experimental] save_{excursion,restriction}, Stefan Monnier, 2012/07/24
- Re: [RFC, experimental] save_{excursion,restriction}, Dmitry Antipov, 2012/07/24
- Re: [RFC, experimental] save_{excursion,restriction}, Stefan Monnier, 2012/07/24
- Re: [RFC, experimental] save_{excursion,restriction}, Dmitry Antipov, 2012/07/25
- Re: [RFC, experimental] save_{excursion,restriction}, Stefan Monnier, 2012/07/25
- Re: [RFC, experimental] save_{excursion,restriction}, Dmitry Antipov, 2012/07/26
- Re: [RFC, experimental] save_{excursion,restriction}, Stefan Monnier, 2012/07/26
Re: [RFC, experimental] save_{excursion,restriction}, Ivan Andrus, 2012/07/24