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 14:23:31 -0500 Message-ID: <11315.1290885811@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> Reply-To: nicholas.dokos@hp.com Return-path: Received: from [140.186.70.92] (port=41564 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PMQNE-0001v8-SV for emacs-orgmode@gnu.org; Sat, 27 Nov 2010 14:23:57 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PMQN3-00020z-EO for emacs-orgmode@gnu.org; Sat, 27 Nov 2010 14:23:51 -0500 Received: from vms173005pub.verizon.net ([206.46.173.5]:60645) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PMQN3-00020Q-Ae for emacs-orgmode@gnu.org; Sat, 27 Nov 2010 14:23:41 -0500 Received: from gamaville.dokosmarshall.org ([unknown] [173.76.32.106]) by vms173005.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0LCK00K4M5V5R6C0@vms173005.mailsrvcs.net> for emacs-orgmode@gnu.org; Sat, 27 Nov 2010 13:23:30 -0600 (CST) In-reply-to: Message from Rainer Stengele of "Sat, 27 Nov 2010 19:25:27 +0100." <4CF14D17.1010905@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: > Nick, elp-reset-all does not work. Some more detail would be helpful: in what way does it not work? If I do M-x elp-reset-all M-x elp-results I get a blank slate. Then I can press 10 "n", and do M-x elp-results and get org-agenda-list 1 0.542113 0.542113 org-agenda-get-day-entries 105 0.2963639999 0.0028225142 org-agenda-get-scheduled 105 0.1733859999 0.0016512952 org-agenda-files 3 0.163354 0.0544513333 org-time-string-to-absolute 833 0.1295979999 0.0001555798 org-parse-time-string 847 0.1100739999 0.0001299574 org-prepare-agenda 1 0.055021 0.055021 org-agenda-get-timestamps 105 0.0506039999 0.0004819428 org-prepare-agenda-buffers 1 0.049225 0.049225 org-refresh-category-properties 15 0.030431 0.0020287333 org-agenda-get-sexps 105 0.02591 0.0002467619 org-agenda-get-deadlines 105 0.0178420000 0.0001699238 org-diary-sexp-entry 14 0.0136680000 0.0009762857 org-agenda-get-blocks 105 0.0129850000 0.0001236666 org-agenda-next-line 10 0.0122370000 0.0012237 org-closest-date 196 0.0108019999 5.511...e-05 org-finalize-agenda 1 0.009044 0.009044 org-up-heading-safe 95 0.0086909999 9.148...e-05 org-agenda-do-context-action 10 0.008677 0.0008677000 org-display-outline-path 10 0.007925 0.0007925 ... reflecting the stats from the last reset onwards. What do you get? > Reason for "42" calls is I simply leave my finger on the key for a while > ... just to see the result more clear: Hmm, I'd prefer a more controlled experiment: it would be better to press it say 10 times discretely. I wonder also if crossing from one date to the next affects things (in my case, it does not). > > org-agenda-next-line 42 > 2.837738 0.0675651904 Be that as it may, you get 67.5ms per call to org-agenda-next-line and I get 1.22ms, roughly a factor of 50. Can you do M-x elp-instrument-function next-line and get another profile? Thanks, Nick