From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Clemente Subject: Agenda is slow because of vc-mode Date: Mon, 7 Jun 2010 14:25:07 +0200 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from [140.186.70.92] (port=50941 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OLbOO-0004WP-KR for emacs-orgmode@gnu.org; Mon, 07 Jun 2010 08:25:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OLbOC-0002pA-QT for emacs-orgmode@gnu.org; Mon, 07 Jun 2010 08:25:24 -0400 Received: from mail-wy0-f169.google.com ([74.125.82.169]:54950) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OLbOC-0002ox-MU for emacs-orgmode@gnu.org; Mon, 07 Jun 2010 08:25:12 -0400 Received: by wyb42 with SMTP id 42so1603878wyb.0 for ; Mon, 07 Jun 2010 05:25:11 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Org-mode Org-Mode Hi. I have a shell script which exports my agenda to a file. It's pretty slow: about 90 seconds. There are many files (200 .org files, 76k lines, 3'6 Mb, 1600 open tasks) but the performance should be better. I found a way to bring it down to 11 seconds: temporarily disable the version control tools I'm using (bazaar, git). To test, just change their names so that Emacs can't run them. Since this slowness is caused by vc-mode, I wonder if it's possible for Org to open the agenda files without enabling vc-mode, for vc-mode is not necessary for org-mode. I fear not, because org-agenda-get-day-entries uses org-get-agenda-file-buffer to open a buffer normally, and this buffer should be fully functional for later usage. As a hack, I used (defun vc-find-file-hook () nil) in my script; this does the trick. Greetings, Daniel