[Top][All Lists]

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

Re: Dynamic loading progress

From: Stefan Monnier
Subject: Re: Dynamic loading progress
Date: Sun, 08 Feb 2015 23:17:32 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

> Aurélien Aptel wrote:
>> I've replaced
>> DEFSYM calls with:
>> MQfoo = intern ("foo")
>> Are there any drawbacks?

That looks good.

> It's a bit slower.  Symbols like Qabove are compile-time constants; on my
> platform, for example, Qabove == 8688, and this integer is known at
> compile-time.  This gives C compilers more opportunities for optimization
> than variables like MQfoo do.

But he's talking about code in plugins, i.e. code which needs to be
compiled seaprately from Emacs itself and where the .(s)o file needs to
be re-usable with several different Emacs executables, so the special
optimization as used for Qabove is not an option.


reply via email to

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