From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: moving in the agenda view is slow Date: Sat, 27 Nov 2010 12:00:32 -0500 Message-ID: <589.1290877232@gamaville.dokosmarshall.org> References: <877hfzbsaj.fsf@pinto.chemeng.ucl.ac.uk> <32269.1290826390@gamaville.dokosmarshall.org> <4CF0E9D0.3010302@diplan.de> Reply-To: nicholas.dokos@hp.com Return-path: Received: from [140.186.70.92] (port=35253 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PMO8j-0006Ia-HN for emacs-orgmode@gnu.org; Sat, 27 Nov 2010 12:00:46 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PMO8h-0008Ab-QF for emacs-orgmode@gnu.org; Sat, 27 Nov 2010 12:00:45 -0500 Received: from vms173017pub.verizon.net ([206.46.173.17]:38465) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PMO8h-00089u-Mw for emacs-orgmode@gnu.org; Sat, 27 Nov 2010 12:00:43 -0500 Received: from gamaville.dokosmarshall.org ([unknown] [173.76.32.106]) by vms173017.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0LCJ00BOFZ8V0770@vms173017.mailsrvcs.net> for emacs-orgmode@gnu.org; Sat, 27 Nov 2010 11:00:32 -0600 (CST) In-reply-to: Message from Rainer Stengele of "Sat, 27 Nov 2010 12:21:52 +0100." <4CF0E9D0.3010302@diplan.de> 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: Rainer Stengele Cc: nicholas.dokos@hp.com, emacs-orgmode@gnu.org, Eric S Fraga Rainer Stengele wrote: > What I did: > open the agenda view > > M-x elp-instrument-package org several "n"s - delays are there - same on linux (V23.2.1) and windows emacs > M-x elp-results > > > org-agenda-next-line 79 4.004141 0.0506853291 > org-agenda-do-context-action 79 0.0013609999 1.722...e-05 > org-unhighlight 81 0.0009170000 1.132...e-05 > org-get-at-bol 79 0.000473 5.987...e-06 > org-detach-overlay 81 0.0002689999 3.320...e-06 > org-agenda-post-command-hook 81 0.0002449999 3.024...e-06 > > strange, why do I not get more details? Why are there 79 calls to org-agenda-next-line? AFAIK, there should be just one for each "n" pressed. Maybe do M-x elp-reset-all, then press "n", and M-x elp-results? The thing is that org-agenda-next-line is very simple: ,---- | (defun org-agenda-next-line () | "Move cursor to the next line, and show if follow mode is active." | (interactive) | (call-interactively 'next-line) | (org-agenda-do-context-action)) `---- and the calls to org-agend-do-context-action don't amount to much, so essentially all of the time must be spent in the (call-interactively 'next-line). Maybe M-x elp-instrument-function next-line will give some more clues. I assume call-interactively cannot be instrumented by elp since it's in C. Nick