From mboxrd@z Thu Jan 1 00:00:00 1970 From: Susan Addy Subject: Re: slow agenda view and scrolling through headlines Date: Sun, 13 Nov 2011 19:54:54 -0800 Message-ID: References: <87ipmnllc1.fsf@norang.ca> <9115.1321225126@alphaville.americas.hpqcorp.net> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=0016e64695eeb1e44d04b1a9d6bf Return-path: Received: from eggs.gnu.org ([140.186.70.92]:58666) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RPndg-0004bf-0K for emacs-orgmode@gnu.org; Sun, 13 Nov 2011 22:55:21 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RPnde-0004eG-8d for emacs-orgmode@gnu.org; Sun, 13 Nov 2011 22:55:19 -0500 Received: from mail-ww0-f49.google.com ([74.125.82.49]:39213) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RPndd-0004e4-M6 for emacs-orgmode@gnu.org; Sun, 13 Nov 2011 22:55:18 -0500 Received: by wwe32 with SMTP id 32so2339112wwe.30 for ; Sun, 13 Nov 2011 19:55:16 -0800 (PST) In-Reply-To: <9115.1321225126@alphaville.americas.hpqcorp.net> 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: nicholas.dokos@hp.com Cc: Bernt Hansen , emacs-orgmode@gnu.org --0016e64695eeb1e44d04b1a9d6bf Content-Type: text/plain; charset=ISO-8859-1 Hi Nick, I have looked through the archives and tried what I found, including the linum-mode and property-inheritance, which didn't affect the problem. I also tried to change to the latest version of org mode and (I think) emacs, which didn't help. I don't recall seeing the font-lock problem, though I may have tried it earlier. I'll look for that one again. Most of the archive questions had a slow agenda all the time, and not only sometimes. I tried your commands below (thank you!) and have some interesting results, but I don't know enough to interpret them. If I am interpreting right, org-scan-tags sometimes takes much longer, but I have no idea why it would be fast sometimes and slow others. Here are the top 10 listings when operation is fast (about 3 seconds) Function Name Call Count Elapsed Time Average Time ============================================================ ========== org-agenda 1 1.943013 1.943013 org-agenda-run-series 1 1.590022 1.590022 org-let2 2 1.1610179999 0.5805089999 org-tags-view 1 0.826727 0.826727 org-scan-tags 5 0.760431 0.1520862 org-let 2 0.426281 0.2131405 org-agenda-get-restriction-and-command 1 0.3529 0.3529 org-agenda-list 1 0.334261 0.334261 org-prepare-agenda-buffers 2 0.3264879999 0.1632439999 org-prepare-agenda 3 0.3113339999 0.1037779999 org-get-entries-from-diary 1 0.266385 0.26638 When agenda is slow: Function Name Call Count Elapsed Time Average Time ============================================================ ========== org-agenda 1 12.133429 12.133429 org-agenda-run-series 1 11.768025 11.768025 org-let2 2 10.856247999 5.4281239999 org-tags-view 1 10.427989 10.427989 org-scan-tags 5 10.402578000 2.0805156000 org-let 2 0.908944 0.454472 org-finalize-agenda 3 0.8176239999 0.2725413333 org-agenda-get-day-entries 10 0.6845889999 0.0684588999 org-agenda-get-scheduled 10 0.4447109999 0.0444711 org-agenda-list 1 0.428234 0.428234 On Sun, Nov 13, 2011 at 2:58 PM, Nick Dokos wrote: > Susan Addy wrote: > > > Thanks Bernt. I checked and Linum-mode is not enabled. > > > > Also, I using emacs 22.3.1 and org-mode 7.7 (if it helps). > > > > > > On Sun, Nov 13, 2011 at 2:16 PM, Bernt Hansen wrote: > > > > Susan Addy writes: > > > > > Below is a list of my agenda command - maybe it is too long? When > it > > > is slow, it is slow no matter what TODO I am trying to compile. > > > > > > Any thoughts? > > > Thank you! > > > > If you have linum-mode enabled you should turn that off. Others have > > reported slow navigation when that is enabled. > > > > HTH, > > Bernt > > > > > > There have been various discussions on agenda slowness in the past - > check the mailing list for some guesses (linum-mode, font-lock, property > inheritance, code compilation and perhaps others have been suggested as > possible causes). Sometimes the guesses pan out, sometimes not. > > The most important thing you can do, imo, is to profile the code, first > when it's behaving well and then when it's behaving badly. > > All you have to do is > > M-x elp-instrument-package RET org RET > > run your agenda command and then > > M-x elp-results RET > > to get the results. > > Nick > --0016e64695eeb1e44d04b1a9d6bf Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi Nick,=A0
=A0 =A0 I have looked through the archives and tried what I= found, including the linum-mode and property-inheritance, which didn't= affect the problem. I also tried to change to the latest version of org mo= de and (I think) emacs, which didn't help. I don't recall seeing th= e font-lock problem, though I may have tried it earlier. I'll look for = that one again. Most of the archive questions had a slow agenda all the tim= e, and not only sometimes.=A0

=A0 =A0I tried your commands below (thank you!) and hav= e some interesting results, but I don't know enough to interpret them. = If I am interpreting right,=A0org-scan-tags =A0sometimes takes much longer,= but I have no idea why it would be fast sometimes and slow others.=A0

Here are the top 10 listings when operation is fast (about 3 secon= ds)=A0

Function Name =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 Call Count=A0 Elapsed T= ime=A0 Average Time

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=A0 =3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=A0

org-agenda=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 1 =A0 =A0 =A0 =A0 = =A0 1.943013=A0 =A0 =A0 1.943013

org-agenda-run-series =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 1 =A0 =A0 =A0 =A0 =A0 1.590022= =A0 =A0 =A0 1.590022

org-let2=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 2 =A0 =A0 =A0 =A0 = =A0 1.1610179999=A0 0.5805089999

org-tags-view =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 1 =A0 =A0 =A0 =A0 =A0 0= .826727=A0 =A0 =A0 0.826727

org-scan-tags =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 5 =A0 =A0 =A0 =A0 =A0 0= .760431=A0 =A0 =A0 0.1520862

org-let =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 2 =A0 =A0 =A0 =A0 = =A0 0.426281=A0 =A0 =A0 0.2131405

org-agenda-get-restriction-and-command=A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 1 =A0 =A0 =A0 =A0 =A0 0.3529=A0 =A0 =A0 =A0 0.3= 529

org-agenda-list =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 1 =A0 =A0 =A0 =A0 =A0 0.33= 4261=A0 =A0 =A0 0.334261

org-prepare-agenda-buffers=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 2 =A0 =A0 =A0 =A0 =A0 0.3264879999= =A0 0.1632439999

org-prepare-agenda=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 3 =A0 =A0 =A0 =A0 =A0 0.311= 3339999=A0 0.1037779999

org-get-entries-from-diary=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 1 =A0 =A0 =A0 =A0 =A0 0.266385=A0 = =A0 =A0 0.26638


When agenda is s= low:=A0

Function Name=A0=A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0=A0Call Count=A0=A0Elapsed Time=A0=A0Average Time

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=A0=A0=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=A0=A0

org-agenda=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 1 =A0 =A0 =A0 =A0 = =A0 12.133429 =A0 =A0 12.133429

org-agenda-run-series =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 1 =A0 =A0 =A0 =A0 =A0 11.768025= =A0 =A0 11.768025

org-let2=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 2 =A0 =A0 =A0 =A0 = =A0 10.856247999=A0 5.4281239999

org-tags-view =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 1 =A0 =A0 =A0 =A0 =A0 1= 0.427989 =A0 =A0 10.427989

org-scan-tags =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 5 =A0 =A0 =A0 =A0 =A0 1= 0.402578000=A0 2.0805156000

org-let =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 2 =A0 =A0 =A0 =A0 = =A0 0.908944=A0 =A0 =A0 0.454472

org-finalize-agenda =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 3 =A0 =A0 =A0 =A0 =A0 0.817623= 9999=A0 0.2725413333

org-agenda-get-day-entries=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 10=A0 =A0 =A0 =A0 =A0 0.6845889999= =A0 0.0684588999

org-agenda-get-scheduled=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 10=A0 =A0 =A0 =A0 =A0 0.4447109999= =A0 0.0444711

org-agenda-list =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 1 =A0 =A0 =A0 =A0 =A0 0.42= 8234=A0 =A0 =A0 0.428234


On Sun, No= v 13, 2011 at 2:58 PM, Nick Dokos <nicholas.dokos@hp.com> wrote:
Susan Add= y <susan.e.addy@gmail.com&= gt; wrote:

> Thanks Bernt. I checked and Linum-mode is not enabled.=A0
> =A0=A0
> Also, I using emacs 22.3.1 and org-mode 7.7 (if it helps).=A0
> =A0
>
> On Sun, Nov 13, 2011 at 2:16 PM, Bernt Hansen <bernt@norang.ca> wrote:
>
> =A0 =A0 Susan Addy <susan= .e.addy@gmail.com> writes:
>
> =A0 =A0 > Below is a list of my agenda command - maybe it is too lo= ng? When it
> =A0 =A0 > is slow, it is slow no matter what TODO I am trying to co= mpile.
> =A0 =A0 >
> =A0 =A0 > Any thoughts?=A0
> =A0 =A0 > Thank you!
>
> =A0 =A0 If you have linum-mode enabled you should turn that off. =A0Ot= hers have
> =A0 =A0 reported slow navigation when that is enabled.
>
> =A0 =A0 HTH,
> =A0 =A0 Bernt
>
>

There have been various discussions on agenda slowness in the p= ast -
check the mailing list for some guesses (linum-mode, font-lock, property inheritance, code compilation and perhaps others have been suggested as
possible causes). Sometimes the guesses pan out, sometimes not.

The most important thing you can do, imo, is to profile the code, first
when it's behaving well and then when it's behaving badly.

All you have to do is

=A0 =A0M-x elp-instrument-package RET org RET

run your agenda command and then

=A0 =A0M-x elp-results RET

to get the results.

Nick

--0016e64695eeb1e44d04b1a9d6bf--