emacs-devel
[Top][All Lists]
Advanced

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

Re: When should ralloc.c be used? (WAS: bug#24358)


From: Paul Eggert
Subject: Re: When should ralloc.c be used? (WAS: bug#24358)
Date: Thu, 27 Oct 2016 15:34:23 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0

On 10/27/2016 01:40 PM, Richard Stallman wrote:
Any such scheme has this problem:
how to find all the places where initialization has stored some sort
of value?  They do not all have ways to access them and set them from Lisp.

My impression is that most such initializations are so small and fast that we needn't worry about saving and restoring their state. We can simply redo the initialization when Emacs starts up again - this will be the default behavior if we leave the temacs initialization code alone, which means we'd get this for very little maintenance effort. Any counterexamples we can handle specially, by saving and restoring their state by hand (so to speak).

Something along the lines of your idea for storage creation should work, though we'll have to be careful about destructive operations like setcar that can cause an object with an earlier sequence number to point to an object with a later sequence number. It's not clear whether it has significant advantages over the C-based approach.




reply via email to

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