From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Sebastien Vauban" Newsgroups: gmane.emacs.help Subject: Performances while loading bytecomp and warnings Date: Tue, 07 Aug 2012 16:01:21 +0200 Organization: Sebastien Vauban Message-ID: <80k3xaer7y.fsf@somewhere.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1344348319 4867 80.91.229.3 (7 Aug 2012 14:05:19 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 7 Aug 2012 14:05:19 +0000 (UTC) To: help-gnu-emacs-mXXj517/zsQ@public.gmane.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org-mXXj517/zsQ@public.gmane.org Tue Aug 07 16:05:20 2012 Return-path: Envelope-to: geh-help-gnu-emacs@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 1SykPK-00019L-Cd for geh-help-gnu-emacs@m.gmane.org; Tue, 07 Aug 2012 16:05:14 +0200 Original-Received: from localhost ([::1]:33538 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SykPJ-00011O-JJ for geh-help-gnu-emacs@m.gmane.org; Tue, 07 Aug 2012 10:05:13 -0400 Original-Path: usenet.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsgate.cistron.nl!newsgate.news.xs4all.nl!news2.euro.net!feeds.phibee-telecom.net!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 41 Injection-Info: mx04.eternal-september.org; posting-host="368fa3c7dc5c1bbe516391bd65bd1ab2"; logging-data="15804"; mail-complaints-to="abuse-VVbKFVtnif8H+i2N2EyTrmui9UKz+5OX@public.gmane.org"; posting-account="U2FsdGVkX1/RuOiM128LnFm6UaD78ycx" User-Agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.1 (windows-nt) X-Url: Under construction... X-Archive: encrypt Cancel-Lock: sha1:aXpJjLn2LYnucjR/ZD3926dhWXY= sha1:2CiV3zz7jz6NkfTQfLSQrjeottM= Original-Xref: usenet.stanford.edu gnu.emacs.help:193866 X-BeenThere: help-gnu-emacs-mXXj517/zsQ@public.gmane.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org-mXXj517/zsQ@public.gmane.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org-mXXj517/zsQ@public.gmane.org Xref: news.gmane.org gmane.emacs.help:86235 Archived-At: Hello, Looking at reducing my Emacs startup time, I've noticed that the following snippet of code takes ~2.00 seconds on my machine: --8<---------------cut here---------------start------------->8--- ;; add the ability to copy or cut the current line without marking it ;; (no active region) -- idea stolen from SlickEdit (defadvice kill-ring-save (before slickcopy activate compile) "When called interactively with no active region, copy the current line instead." (interactive (if mark-active (list (region-beginning) (region-end)) (message "Copied the current line") (list (line-beginning-position) (line-beginning-position 2))))) (defadvice kill-region (before slickcut activate compile) "When called interactively with no active region, kill the current line instead." (interactive (if mark-active (list (region-beginning) (region-end)) (list (line-beginning-position) (line-beginning-position 2))))) --8<---------------cut here---------------end--------------->8--- That requires: - bytecomp - macroexp - cconv - cl-macs - warnings Is there a way to reduce that time, or to let it be taken later, when needed for the first time? Best regards, Seb -- Sebastien Vauban