emacs-devel
[Top][All Lists]
Advanced

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

Re: Loading dynamic docstrings and bytecode more lazily


From: Helmut Eller
Subject: Re: Loading dynamic docstrings and bytecode more lazily
Date: Sat, 09 Feb 2013 10:06:44 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

On Sat, Feb 09 2013, Stefan Monnier wrote:

> So, my current decision is to keep this patch in my "treasure chest"
> because it's simply not worth the trouble.  But if someone can make
> a good case for it, I could change my mind.

I think such a lazily loaded section would be quite useful for debugging
information.  E.g. the compiler could emit tables to associate the names
of lexically scoped variables with stack offsets and also to map byte
offsets in compiled code back to the position in the source file.

Such information is necessary to make compiled code easier to debug and
potentially quite big, but of course it's not needed for normal
execution.  Therefore not loading such information before it's actually
needed would be an obvious optimization.

Teaching the compiler to emit those tables and the debugger to use them
is the real work but knowing that additional debugging information costs
"nothing" as long as it is not used, could lower the barrier the get
such improvements accepted.

Helmut




reply via email to

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