From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Re: moving in the agenda view is slow Date: Sun, 28 Nov 2010 15:01:33 -0500 Message-ID: <28338.1290974493@gamaville.dokosmarshall.org> References: <877hfzbsaj.fsf@pinto.chemeng.ucl.ac.uk> <32269.1290826390@gamaville.dokosmarshall.org> <4CF0E9D0.3010302@diplan.de> <589.1290877232@gamaville.dokosmarshall.org> <4CF14D17.1010905@online.de> <11315.1290885811@gamaville.dokosmarshall.org> <4CF1740B.6030405@online.de> <2516.1290904225@gamaville.dokosmarshall.org> <4CF2A1BE.7020306@online.de> Reply-To: nicholas.dokos@hp.com Return-path: Received: from [140.186.70.92] (port=44595 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PMnRR-000710-B5 for emacs-orgmode@gnu.org; Sun, 28 Nov 2010 15:01:46 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PMnRP-0004iM-MM for emacs-orgmode@gnu.org; Sun, 28 Nov 2010 15:01:45 -0500 Received: from vms173017pub.verizon.net ([206.46.173.17]:35006) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PMnRP-0004iG-Gf for emacs-orgmode@gnu.org; Sun, 28 Nov 2010 15:01: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 <0LCM00JU72AJSUB0@vms173017.mailsrvcs.net> for emacs-orgmode@gnu.org; Sun, 28 Nov 2010 14:01:32 -0600 (CST) In-reply-to: Message from Rainer Stengele of "Sun, 28 Nov 2010 19:38:54 +0100." <4CF2A1BE.7020306@online.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: emacs-orgmode@gnu.org, nicholas.dokos@hp.com, Rainer Stengele , Eric S Fraga Rainer Stengele wrote: > Am 28.11.2010 01:30, schrieb Nick Dokos: > > Rainer Stengele wrote: > > > >> Am 27.11.2010 20:23, schrieb Nick Dokos: > >>> ... > >>> Can you do M-x elp-instrument-function next-line and > >>> get another profile? > >>> > >> ok, I did, getting > >> > >> org-agenda-next-line 10 > >> 0.864912 0.0864912 > >> org-unhighlight 14 > >> 0.0008759999 6.257...e-05 > >> org-detach-overlay 14 > >> 0.0006229999 4.449...e-05 > >> org-agenda-do-context-action 10 > >> 0.000274 2.74e-05 > >> org-get-at-bol 10 > >> 9.400...e-05 9.400...e-06 > >> org-agenda-post-command-hook 14 > >> 7.5e-05 5.357...e-06 > >> > >> for 10 "next-lines", all in the agenda block of > >> > >> Monday 29 November 2010 W48 > >> > >> which means there is no date crossing. > >> What can I do to detail org-agenda-next-line? > >> > > Apparently, you didn't read my mail carefully enough: see above. > > > > Nick > Nick, > > sorry if I misunderstand, I tried again and get this: > > which probably is not what we expect to see? > What I do is: > being in the agenda I enter > M-x elp-instrument-function next-line > then enter "n" once and get: > > next-line 1 0.016 0.016 > > Thats really all I get. No more line than this one. > I just tried the following sequence: --8<---------------cut here---------------start------------->8--- o Start a new emacs o M-x elp-instrument-package org o M-x elp-instrument-function next-line o C-c a a to get an agenda o M-x elp-reset-all o Press "n" 11 times (I just went over all the items for today). o M-x elp-results --8<---------------cut here---------------end--------------->8--- and I get the following results: --8<---------------cut here---------------start------------->8--- org-agenda-next-line 11 0.0126380000 0.0011489090 org-agenda-do-context-action 11 0.0073120000 0.0006647272 org-display-outline-path 10 0.006614 0.0006614 next-line 11 0.005075 0.0004613636 org-get-outline-path 10 0.0028759999 0.0002875999 org-up-heading-safe 20 0.0023870000 0.0001193500 org-back-to-heading 20 0.000652 3.26e-05 org-format-outline-path 10 0.0003160000 3.16e-05 org-unhighlight 12 0.00023 1.916...e-05 org-outline-level 30 0.0001790000 5.966...e-06 org-add-props 10 7.199...e-05 7.199...e-06 org-get-at-bol 11 6e-05 5.454...e-06 org-detach-overlay 12 5.600...e-05 4.666...e-06 org-agenda-post-command-hook 12 4.199...e-05 3.499...e-06 --8<---------------cut here---------------end--------------->8--- Can you try this and let me know if it's not working the same way? Thanks, Nick PS Incidentally, note that in my case the next-line times account for about 40% of the org-agenda-next-line times: the other 60% is accounted for by org-agenda-do-context-action. In your original profile, the latter was insignificant: that's why I'd like to see the next-line results.