emacs-devel
[Top][All Lists]
Advanced

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

Re: Is it time to remove INTERNAL_FIELD?


From: Eli Zaretskii
Subject: Re: Is it time to remove INTERNAL_FIELD?
Date: Thu, 23 Apr 2015 20:29:33 +0300

> From: Oleh Krehel <address@hidden>
> Cc: address@hidden,  address@hidden
> Date: Thu, 23 Apr 2015 19:09:24 +0200
> 
> Are macros really the state-of-the-art for making accessors?

It depends how deep in inner loops they are called.  If they are deep
enough, then either macros or inline functions are used.  We actually
use both, with some fine-tuning (see lisp.h), because we want Emacs to
be reasonably fast even in an unoptimized build, where inline
functions are not inlined.  (Most core developers run the development
version built without optimizations, since optimized code is hard to
debug.)

Accessor functions that are not speed-critical can be simple
functions.



reply via email to

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