From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Dynamic loading progress Date: Sun, 08 Feb 2015 23:17:32 -0500 Message-ID: References: <87y4t9m76w.fsf@lifelogs.com> <85k31coixa.fsf@stephe-leake.org> <85oapy5kt6.fsf@stephe-leake.org> <83y4oiiw81.fsf@gnu.org> <838ugdf251.fsf@gnu.org> <54D80098.3020209@cs.ucla.edu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1423455474 8682 80.91.229.3 (9 Feb 2015 04:17:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 9 Feb 2015 04:17:54 +0000 (UTC) Cc: =?windows-1252?Q?Aur=E9lien?= Aptel , Eli Zaretskii , Stephen Leake , Emacs development discussions To: Paul Eggert Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Feb 09 05:17:53 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YKfnE-0005uX-5r for ged-emacs-devel@m.gmane.org; Mon, 09 Feb 2015 05:17:52 +0100 Original-Received: from localhost ([::1]:58786 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YKfnD-0001je-L5 for ged-emacs-devel@m.gmane.org; Sun, 08 Feb 2015 23:17:51 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49275) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YKfn0-0001jG-VY for emacs-devel@gnu.org; Sun, 08 Feb 2015 23:17:39 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YKfn0-0002EP-9x for emacs-devel@gnu.org; Sun, 08 Feb 2015 23:17:38 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:41312) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YKfmv-0002Dw-DQ; Sun, 08 Feb 2015 23:17:33 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AlsJAPOG1lTAqyxp/2dsb2JhbABbDoJ4g1/GNAQEAgKBDUQBAQEBAQF8hAwBAQEBAgFWIwULCxgcEhQYDSSIOAjOIwEBAQcCAR+PFWMHhCoFiieDEZ1/IoMxWyCCcwEBAQ X-IPAS-Result: AlsJAPOG1lTAqyxp/2dsb2JhbABbDoJ4g1/GNAQEAgKBDUQBAQEBAQF8hAwBAQEBAgFWIwULCxgcEhQYDSSIOAjOIwEBAQcCAR+PFWMHhCoFiieDEZ1/IoMxWyCCcwEBAQ X-IronPort-AV: E=Sophos;i="5.09,536,1418101200"; d="scan'208";a="109993342" Original-Received: from 192-171-44-105.cpe.pppoe.ca (HELO pastel.home) ([192.171.44.105]) by ironport2-out.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 08 Feb 2015 23:17:32 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id B45D31F77; Sun, 8 Feb 2015 23:17:32 -0500 (EST) In-Reply-To: <54D80098.3020209@cs.ucla.edu> (Paul Eggert's message of "Sun, 08 Feb 2015 16:34:32 -0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.181 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:182659 Archived-At: > Aur=E9lien Aptel wrote: >> I've replaced >> DEFSYM calls with: >> MQfoo =3D 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 =3D=3D 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. Stefan