From mboxrd@z Thu Jan 1 00:00:00 1970 From: Grant Rettke Subject: Re: Using an org based init file slows down emacs startup by 50x..help needed :( Date: Mon, 12 Dec 2016 15:30:21 -0600 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56190) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cGYCM-0001T1-Aj for emacs-orgmode@gnu.org; Mon, 12 Dec 2016 16:31:54 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cGYCH-0007DW-Hl for emacs-orgmode@gnu.org; Mon, 12 Dec 2016 16:31:50 -0500 Received: from mail-io0-f194.google.com ([209.85.223.194]:35139) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cGYCH-00079c-DI for emacs-orgmode@gnu.org; Mon, 12 Dec 2016 16:31:45 -0500 Received: by mail-io0-f194.google.com with SMTP id f73so24365954ioe.2 for ; Mon, 12 Dec 2016 13:31:22 -0800 (PST) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Xebar Saram Cc: org mode On Sat, Dec 10, 2016 at 2:36 AM, Xebar Saram wrote: > So after a few months of frustration today i discovered the issue that's > been bothering me for a long time..the REALLY slow emacs startup I tangled it on my box like this: Start Emacs default emacs --no-init-file (emacs-version) "GNU Emacs 24.5.1 (x86_64-apple-darwin15.4.0, NS apple-appkit-1404.46) of 2016-06-08 on vela" (org-version) "8.2.10" In Emacs I evaluated (defmacro measure-time (&rest body) "Measure the time it takes to evaluate BODY." `(let ((time (current-time))) ,@body (message "%.06f" (float-time (time-since time))))) And timed and tangled it. It took approximately 8 minutes. When I tangle it using my config it takes approximately 11 seconds. I would start with a bisection of the file to try and narrow down when and where the slowdown occurs.