From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Hansen Newsgroups: gmane.emacs.help Subject: Re: Why it is necessary to compile el files? Date: Sat, 29 Sep 2007 17:48:17 +0200 Organization: disorganized Message-ID: <87lkapscam.fsf@localhorst.mine.nu> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1191081262 3416 80.91.229.12 (29 Sep 2007 15:54:22 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 29 Sep 2007 15:54:22 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Sep 29 17:54:16 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Ibedy-0004Jh-Np for geh-help-gnu-emacs@m.gmane.org; Sat, 29 Sep 2007 17:54:15 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ibedv-00073A-3P for geh-help-gnu-emacs@m.gmane.org; Sat, 29 Sep 2007 11:54:11 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ibedi-00072r-O2 for help-gnu-emacs@gnu.org; Sat, 29 Sep 2007 11:53:58 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ibedh-00072f-6N for help-gnu-emacs@gnu.org; Sat, 29 Sep 2007 11:53:58 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ibedh-00072c-2d for help-gnu-emacs@gnu.org; Sat, 29 Sep 2007 11:53:57 -0400 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Ibedg-0001Eg-Ia for help-gnu-emacs@gnu.org; Sat, 29 Sep 2007 11:53:56 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1IbedF-0003Bf-Gz for help-gnu-emacs@gnu.org; Sat, 29 Sep 2007 15:53:29 +0000 Original-Received: from e178028060.adsl.alicedsl.de ([85.178.28.60]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 29 Sep 2007 15:53:29 +0000 Original-Received: from david.hansen by e178028060.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 29 Sep 2007 15:53:29 +0000 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: help-gnu-emacs@gnu.org Original-Lines: 41 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: e178028060.adsl.alicedsl.de Mail-Copies-To: nobody User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.1.50 (gnu/linux) Cancel-Lock: sha1:9eZtOj+UhuZOkIcE4WSfDaV+ANE= X-Detected-Kernel: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:47974 Archived-At: On Sat, 29 Sep 2007 11:48:05 +0900 Ke Lu wrote: > Why it is necessary to compile el files? > > I can't fell it become faster after compile el files. > I often install emacs package without make and just > add load script which like following > (add-to-list 'load-path "path-of-package") > (require 'xxx) > > I think it makes things easy. > > I want to know Why it is necessary to compile el files? > If it makes the speed up,How can I feel it? It's not necessary, but it definitively speeds up things (especially when macros are involved): ,----[ tst.el ] | (eval-when-compile (require 'cl)) | (dotimes (i 1000000) | (let ((foo '())) | (push 'bar foo) | (pop foo))) `---- $ time emacs -Q -batch -l tst.el real 0m14.360s user 0m14.109s sys 0m0.124s $ time emacs -Q -batch -l tst.elc real 0m0.948s user 0m0.936s sys 0m0.008s But this is a rather drastic example. David