emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* org-mode on sloooow computer
@ 2009-04-23 16:38 Eric S Fraga
  2009-04-23 19:15 ` Sven Bretfeld
  2009-04-23 20:26 ` Carsten Dominik
  0 siblings, 2 replies; 41+ messages in thread
From: Eric S Fraga @ 2009-04-23 16:38 UTC (permalink / raw)
  To: emacs-orgmode

Hi,

I've been using org-mode more and more and, unsurprisingly, it gets
slower and slower due to the increasing amount of data org-mode has to
parse and evaluate.  On my desktop systems (and on my full-featured
laptop), this is not yet a problem [1].  On my little netbook (the
original eee pc from Asus which is used primarily for org-mode!), there
are some annoyances due to the much slower cpu.  I'd like to mention one
that I believe should be easy to fix (for those with much more elisp
expertise than my own...):

When in agenda view, when org-agenda-goto-date is invoked (typically
with 'j'), the agenda view is regenerated for today's date regardless of
which date I am currently viewing, before allowing me to input a date.
This seems an unnecessary step and I wonder whether it would be easy to
change?  On my Asus, regenerating the view for my current date (with
todos, scheduled items, etc) takes at least 8 seconds!  When I'm
checking out various dates in the future for possible meetings or
whatever, having to wait up to 10 seconds each time I look at a
different date gets a little frustrating.

I've had a look at org-agenda-goto-date and org-read-date but it's not
immediately apparent to me why the current date's view has to be
generated.

Is it possible to avoid that current date regeneration?  Apologies if
I've misinterpreted what is actually happening.

Of course, I would be happy to have any recommendations for a different
mode of operation, if such exists!

I'm using emacs version 23.0.92.1 with org-mode version 6.26a.

Thanks,
eric

Footnotes: 
[1]  I know that I could help things by clearing out some of the cruft
from my agenda files, but that is actually one of the todo items already
in my list... ;-)

-- 
MC .  -.. --- -  ..-. .-. .- --. .-  .- -  ..- -.-. .-..  .- -.-.  ..- -.-
NL Professor Eric S Fraga, UCL, http://www.homepages.ucl.ac.uk/~ucecesf/
BF >++++++++++[>++++++++++>+++++++++++[<]>-]>++.>++++.<-----.++++++.------.

^ permalink raw reply	[flat|nested] 41+ messages in thread

* Re: org-mode on sloooow computer
  2009-04-23 16:38 org-mode on sloooow computer Eric S Fraga
@ 2009-04-23 19:15 ` Sven Bretfeld
  2009-04-23 20:30   ` Carsten Dominik
  2009-04-23 20:26 ` Carsten Dominik
  1 sibling, 1 reply; 41+ messages in thread
From: Sven Bretfeld @ 2009-04-23 19:15 UTC (permalink / raw)
  To: emacs-orgmode

Eric S Fraga <e.fraga@ucl.ac.uk> writes:

> On my Asus, regenerating the view for my current date (with todos,
> scheduled items, etc) takes at least 8 seconds! When I'm checking out
> various dates in the future for possible meetings or whatever, having
> to wait up to 10 seconds each time I look at a different date gets a
> little frustrating.

On a Zaurus it's even worse. Would be nice to speed things up a bit.

Greetings,

Sven
-- 
Sven Bretfeld
      \ CEntrum für
CERES  \ REligionswissenschaftliche
________\_Studien__________________
Ruhr-Universität Bochum
Universitätsstraße 150
D-44780 Bochum
http://www.ruhr-uni-bochum.de/relwiss/

^ permalink raw reply	[flat|nested] 41+ messages in thread

* Re: org-mode on sloooow computer
  2009-04-23 16:38 org-mode on sloooow computer Eric S Fraga
  2009-04-23 19:15 ` Sven Bretfeld
@ 2009-04-23 20:26 ` Carsten Dominik
  2009-04-23 22:10   ` Eric S Fraga, Eric S Fraga
  1 sibling, 1 reply; 41+ messages in thread
From: Carsten Dominik @ 2009-04-23 20:26 UTC (permalink / raw)
  To: Eric S Fraga; +Cc: emacs-orgmode

8-10 seconds, that is a lot.

On Apr 23, 2009, at 6:38 PM, Eric S Fraga wrote:

> Hi,
>
> I've been using org-mode more and more and, unsurprisingly, it gets
> slower and slower due to the increasing amount of data org-mode has to
> parse and evaluate.  On my desktop systems (and on my full-featured
> laptop), this is not yet a problem [1].  On my little netbook (the
> original eee pc from Asus which is used primarily for org-mode!),  
> there
> are some annoyances due to the much slower cpu.  I'd like to mention  
> one
> that I believe should be easy to fix (for those with much more elisp
> expertise than my own...):
>
> When in agenda view, when org-agenda-goto-date is invoked (typically
> with 'j'), the agenda view is regenerated for today's date  
> regardless of
> which date I am currently viewing, before allowing me to input a date.

I don't think I can reproduce this.

> This seems an unnecessary step and I wonder whether it would be easy  
> to
> change?  On my Asus, regenerating the view for my current date (with
> todos, scheduled items, etc) takes at least 8 seconds!  When I'm
> checking out various dates in the future for possible meetings or
> whatever, having to wait up to 10 seconds each time I look at a
> different date gets a little frustrating.
>
> I've had a look at org-agenda-goto-date and org-read-date but it's not
> immediately apparent to me why the current date's view has to be
> generated.

- Carsten

^ permalink raw reply	[flat|nested] 41+ messages in thread

* Re: org-mode on sloooow computer
  2009-04-23 19:15 ` Sven Bretfeld
@ 2009-04-23 20:30   ` Carsten Dominik
  2009-04-24  9:22     ` Eric S Fraga
  2009-04-25  4:06     ` Samuel Wales
  0 siblings, 2 replies; 41+ messages in thread
From: Carsten Dominik @ 2009-04-23 20:30 UTC (permalink / raw)
  To: Sven Bretfeld; +Cc: emacs-orgmode


On Apr 23, 2009, at 9:15 PM, Sven Bretfeld wrote:

> Eric S Fraga <e.fraga@ucl.ac.uk> writes:
>
>> On my Asus, regenerating the view for my current date (with todos,
>> scheduled items, etc) takes at least 8 seconds! When I'm checking out
>> various dates in the future for possible meetings or whatever, having
>> to wait up to 10 seconds each time I look at a different date gets a
>> little frustrating.
>
> On a Zaurus it's even worse. Would be nice to speed things up a bit.

Are both of you running compiled Lisp code?

Are you using day view or week view (which makes 7 day views....)

The following would be interesting:

1. run one of your slow Org commands, just to make sure
    everything is loaded.

2. Run

    M-x elp-instrument-package RET org RET

    to instrument all Org functions for profiling

3. run the slow command again

4. Do

     M-x elp-results

and post the resulting buffer.

- Carsten




>
> Greetings,
>
> Sven
> -- 
> Sven Bretfeld
>      \ CEntrum für
> CERES  \ REligionswissenschaftliche
> ________\_Studien__________________
> Ruhr-Universität Bochum
> Universitätsstraße 150
> D-44780 Bochum
> http://www.ruhr-uni-bochum.de/relwiss/
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

^ permalink raw reply	[flat|nested] 41+ messages in thread

* Re: org-mode on sloooow computer
  2009-04-23 20:26 ` Carsten Dominik
@ 2009-04-23 22:10   ` Eric S Fraga, Eric S Fraga
  2009-04-24  5:03     ` Carsten Dominik
  0 siblings, 1 reply; 41+ messages in thread
From: Eric S Fraga, Eric S Fraga @ 2009-04-23 22:10 UTC (permalink / raw)
  To: Carsten Dominik; +Cc: emacs-orgmode

Carsten Dominik writes:
> 8-10 seconds, that is a lot.

Yes, I agree :( On my desktop, it takes a /trivial/ amount of time,
definitely under a second.  But the Asus is much much slower,
especially as most of the system resides on an SD memory card which is
not particularly fast.  I should say that the .org files searched by
the agenda take up about 0.5 MB.

> > When in agenda view, when org-agenda-goto-date is invoked (typically
> > with 'j'), the agenda view is regenerated for today's date  
> > regardless of
> > which date I am currently viewing, before allowing me to input a date.
> 
> I don't think I can reproduce this.

Which part can you not reproduce?  Even on my fast desktop, if I'm
viewing the daily agenda for May 10th (say), when I hit 'j', I get the
calendar window displayed, the agenda window updates to show the
current date's agenda items and I can then type in a new date in the
mini-buffer.  This happens quite quickly but it *does* happen.

On the Asus, it all happens much much more slowly.  Removing what
seems to me to be a redundant agenda view update would speed things up
tremendously.  It's not unbearable because the benefits of using
org-mode are well worth it but it does mean that I use org-mode more
cautiously on the Asus than I would otherwise.

I will delve into the org-agenda code!

Thanks,
eric 

-- 
MC .  -.. --- -  ..-. .-. .- --. .-  .- -  ..- -.-. .-..  .- -.-.  ..- -.-
NL Professor Eric S Fraga, UCL, http://www.homepages.ucl.ac.uk/~ucecesf/
BF >++++++++++[>++++++++++>+++++++++++[<]>-]>++.>++++.<-----.++++++.------.

^ permalink raw reply	[flat|nested] 41+ messages in thread

* Re: org-mode on sloooow computer
  2009-04-23 22:10   ` Eric S Fraga, Eric S Fraga
@ 2009-04-24  5:03     ` Carsten Dominik
  2009-04-24  8:24       ` Eric S Fraga, Eric S Fraga
  0 siblings, 1 reply; 41+ messages in thread
From: Carsten Dominik @ 2009-04-24  5:03 UTC (permalink / raw)
  To: e.fraga; +Cc: emacs-orgmode


On Apr 24, 2009, at 12:10 AM, Eric S Fraga wrote:

> Carsten Dominik writes:
>> 8-10 seconds, that is a lot.
>
> Yes, I agree :( On my desktop, it takes a /trivial/ amount of time,
> definitely under a second.  But the Asus is much much slower,
> especially as most of the system resides on an SD memory card which is
> not particularly fast.  I should say that the .org files searched by
> the agenda take up about 0.5 MB.
>
>>> When in agenda view, when org-agenda-goto-date is invoked (typically
>>> with 'j'), the agenda view is regenerated for today's date
>>> regardless of
>>> which date I am currently viewing, before allowing me to input a  
>>> date.
>>
>> I don't think I can reproduce this.
>
> Which part can you not reproduce?


When I have the agenda on an arbitrary date, pressing "j" does *not*  
first switch the agenda to today.

> Even on my fast desktop, if I'm
> viewing the daily agenda for May 10th (say), when I hit 'j', I get the
> calendar window displayed, the agenda window updates to show the
> current date's agenda items and I can then type in a new date in the
> mini-buffer.  This happens quite quickly but it *does* happen.
>
> On the Asus, it all happens much much more slowly.  Removing what
> seems to me to be a redundant agenda view update would speed things up
> tremendously.  It's not unbearable because the benefits of using
> org-mode are well worth it but it does mean that I use org-mode more
> cautiously on the Asus than I would otherwise.
>
> I will delve into the org-agenda code!
>
> Thanks,
> eric
>
> -- 
> MC .  -.. --- -  ..-. .-. .- --. .-  .- -  ..- -.-. .-..  .-  
> -.-.  ..- -.-
> NL Professor Eric S Fraga, UCL, http://www.homepages.ucl.ac.uk/~ucecesf/
> BF >++++++++++[>++++++++++>+++++++++++[<]>-]>++.>++++.<-----.+++++ 
> +.------.

^ permalink raw reply	[flat|nested] 41+ messages in thread

* Re: org-mode on sloooow computer
  2009-04-24  5:03     ` Carsten Dominik
@ 2009-04-24  8:24       ` Eric S Fraga, Eric S Fraga
  2009-04-24  9:01         ` Carsten Dominik
  0 siblings, 1 reply; 41+ messages in thread
From: Eric S Fraga, Eric S Fraga @ 2009-04-24  8:24 UTC (permalink / raw)
  To: Carsten Dominik; +Cc: emacs-orgmode

Carsten Dominik writes:
> On Apr 24, 2009, at 12:10 AM, Eric S Fraga wrote:
> > Which part can you not reproduce?
> 
> When I have the agenda on an arbitrary date, pressing "j" does *not*  
> first switch the agenda to today.

<blush>

Okay, the problem was mine: I had included a very useful method,
originally from Tassilo (cf. th-calendar-open-agenda), which would
have the agenda view updated when the calendar view changed.  Removing
this gives the behaviour I was now looking for, and which is indeed
the default behaviour.  Apologies for the noise.

</blush>

Actually, this experience is a testament to the insidious nature (in a
positive way) of org-mode: it is taking over my life!  I used to have
the Emacs diary + calendar as the focus of my attention for task and
time management and org-mode was initially an addition to this.
org-mode is now almost completely the focus and I really need to clean
up my customisations to remove the old vestiges of how I used to work.

Again, apologies and continued thanks for an excellent system which I
could no longer live without!

^ permalink raw reply	[flat|nested] 41+ messages in thread

* Re: org-mode on sloooow computer
  2009-04-24  8:24       ` Eric S Fraga, Eric S Fraga
@ 2009-04-24  9:01         ` Carsten Dominik
  2009-04-24 13:37           ` Rainer Stengele
  0 siblings, 1 reply; 41+ messages in thread
From: Carsten Dominik @ 2009-04-24  9:01 UTC (permalink / raw)
  To: e.fraga; +Cc: emacs-orgmode


On Apr 24, 2009, at 10:24 AM, Eric S Fraga wrote:

> Carsten Dominik writes:
>> On Apr 24, 2009, at 12:10 AM, Eric S Fraga wrote:
>>> Which part can you not reproduce?
>>
>> When I have the agenda on an arbitrary date, pressing "j" does *not*
>> first switch the agenda to today.
>
> <blush>
>
> Okay, the problem was mine: I had included a very useful method,
> originally from Tassilo (cf. th-calendar-open-agenda), which would
> have the agenda view updated when the calendar view changed.  Removing
> this gives the behaviour I was now looking for, and which is indeed
> the default behaviour.  Apologies for the noise.
>
> </blush>
>
> Actually, this experience is a testament to the insidious nature (in a
> positive way) of org-mode: it is taking over my life!  I used to have
> the Emacs diary + calendar as the focus of my attention for task and
> time management and org-mode was initially an addition to this.
> org-mode is now almost completely the focus and I really need to clean
> up my customisations to remove the old vestiges of how I used to work.
>
> Again, apologies and continued thanks for an excellent system which I
> could no longer live without!

I still would like to to see profiling information as I described in  
my message from yesterday, so see if specific operations are  
particularly slow on netbooks or a zaurus.

- Carsten

^ permalink raw reply	[flat|nested] 41+ messages in thread

* Re: org-mode on sloooow computer
  2009-04-23 20:30   ` Carsten Dominik
@ 2009-04-24  9:22     ` Eric S Fraga
  2009-04-24  9:42       ` Carsten Dominik
  2009-04-25  4:06     ` Samuel Wales
  1 sibling, 1 reply; 41+ messages in thread
From: Eric S Fraga @ 2009-04-24  9:22 UTC (permalink / raw)
  To: emacs-orgmode

Carsten Dominik <carsten.dominik@gmail.com> writes:
>
> Are both of you running compiled Lisp code?

yes.  I install org-mode from debian unstable which compiles all the
lisp codes.

>
> Are you using day view or week view (which makes 7 day views....)

day view (used to use week view but was trying to speed things up).

> The following would be interesting:
> [...]
>     M-x elp-results
>
> and post the resulting buffer.

I asked for agenda view (^caa) and get the following results:

,----
| org-agenda                             1           4.358551      4.358551
| org-agenda-list                        1           4.116562      4.116562
| org-agenda-get-day-entries             6           3.4978960000  0.5829826666
| org-get-tags-at                        106         3.2642069999  0.0307944056
| org-up-heading-all                     247         3.2176039999  0.0130267368
| org-agenda-get-scheduled               6           2.660075      0.4433458333
| org-outline-level                      20216       1.4954959999  7.397...e-05
| org-agenda-get-deadlines               6           0.732624      0.122104
| org-dblock-write:clocktable            7           0.549022      0.0784317142
| org-get-clocktable                     1           0.395574      0.395574
| org-update-dblock                      1           0.3571560000  0.3571560000
| org-prepare-agenda-buffers             2           0.2724330000  0.1362165000
| org-agenda-get-restriction-and-command 1           0.241765      0.241765
| org-clock-sum                          6           0.191091      0.0318485
| org-prepare-agenda                     1           0.144341      0.144341
| org-refresh-category-properties        12          0.082294      0.0068578333
| org-agenda-get-timestamps              6           0.0549949999  0.0091658333
| org-get-agenda-file-buffer             18          0.047752      0.0026528888
| org-find-base-buffer-visiting          18          0.0470599999  0.0026144444
| org-get-entries-from-diary             1           0.040401      0.040401
| org-get-todo-state                     107         0.0315449999  0.0002948130
| org-back-to-heading                    232         0.0292360000  0.0001260172
| org-time-string-to-absolute            111         0.0250619999  0.0002257837
| org-end-of-subtree                     11          0.0241239999  0.0021930909
| org-agenda-get-blocks                  6           0.017011      0.0028351666
| org-parse-time-string                  215         0.0162690000  7.566...e-05
| org-agenda-get-sexps                   6           0.0134749999  0.0022458333
| org-agenda-files                       6           0.0126670000  0.0021111666
| org-fit-agenda-window                  1           0.010794      0.010794
| org-fit-window-to-buffer               2           0.010633      0.0053165
| org-mode                               1           0.008961      0.008961
| org-check-agenda-file                  18          0.008071      0.0004483888
| org-get-priority                       8           0.0079779999  0.0009972499
| org-format-agenda-item                 8           0.0069479999  0.0008684999
| org-agenda-skip                        121         0.006809      5.627...e-05
| org-finalize-agenda-entries            1           0.006645      0.006645
| org-install-agenda-files-menu          1           0.003953      0.003953
| org-finalize-agenda                    1           0.003672      0.003672
| org-get-effort                         8           0.003324      0.0004155
| org-agenda-mode                        1           0.003274      0.003274
| org-entry-get                          8           0.0031469999  0.0003933749
| org-agenda-highlight-todo              8           0.0031160000  0.0003895000
| org-table-align                        1           0.002933      0.002933
| org-get-property-block                 8           0.002703      0.000337875
| org-agenda-align-tags                  1           0.002667      0.002667
| org-split-string                       74          0.0021859999  2.954...e-05
| org-create-dblock                      1           0.002171      0.002171
| org-entries-lessp                      16          0.002107      0.0001316875
| org-switch-to-buffer-other-window      1           0.001576      0.001576
| org-agenda-todayp                      12          0.0015239999  0.0001269999
| org-set-startup-visibility             1           0.001405      0.001405
| org-get-category                       107         0.0012670000  1.184...e-05
| org-closest-date                       4           0.001067      0.00026675
| org-cycle                              1           0.00104       0.00104
| org-add-props                          21          0.0009069999  4.319...e-05
| org-time-string-to-time                6           0.000892      0.0001486666
| org-prepare-dblock                     1           0.000882      0.000882
| org-remove-uniherited-tags             149         0.0008630000  5.791...e-06
| org-at-date-range-p                    8           0.000856      0.000107
| org-set-regexps-and-options            1           0.000847      0.000847
| org-get-wdays                          20          0.000799      3.995e-05
| org-agenda-fontify-priorities          1           0.000659      0.000659
| org-before-change-function             76          0.0006260000  8.236...e-06
| org-on-heading-p                       6           0.000614      0.0001023333
| org-agenda-cleanup-fancy-diary         1           0.000487      0.000487
| org-date-to-gregorian                  8           0.000484      6.05e-05
| org-add-prop-inherited                 54          0.0004749999  8.796...e-06
| org-agenda-add-inherited-tags          8           0.000443      5.5375e-05
| org-diary-sexp-entry                   2           0.0004179999  0.0002089999
| org-diary-default-entry                1           0.000394      0.000394
| org-add-to-diary-list                  1           0.000368      0.000368
| org-agenda-new-marker                  18          0.000363      2.016...e-05
| org-do-emphasis-faces                  3           0.000362      0.0001206666
| org-modify-diary-entry-string          1           0.000333      0.000333
| org-activate-bracket-links             2           0.0003090000  0.0001545000
| org-activate-footnote-links            1           0.000279      0.000279
| org-uniquify                           6           0.0002670000  4.450...e-05
| org-agenda-format-date-aligned         1           0.000247      0.000247
| org-get-time-of-day                    2           0.000235      0.0001175
| org-cycle-show-empty-lines             2           0.0002089999  0.0001044999
| org-compile-prefix-format              1           0.000205      0.000205
| org-activate-dates                     2           0.00019       9.5e-05
| org-days-to-iso-week                   3           0.000189      6.3e-05
| org-activate-plain-links               1           0.000165      0.000165
| org-update-radio-target-regexp         1           0.000156      0.000156
| org-file-menu-entry                    12          0.000135      1.125e-05
| org-table-begin                        1           0.000106      0.000106
| org-cycle-hide-archived-subtrees       2           0.0001020000  5.100...e-05
| org-activate-tags                      1           9.4e-05       9.4e-05
| org-activate-angle-links               1           9.1e-05       9.1e-05
| org-activate-code                      1           9.1e-05       9.1e-05
| org-all-targets                        1           8.9e-05       8.9e-05
| org-string-width                       8           8.5e-05       1.0625e-05
| org-add-hook                           4           7.999...e-05  1.999...e-05
| org-unfontify-region                   2           7.9e-05       3.95e-05
| org-font-lock-add-priority-faces       1           7.5e-05       7.5e-05
| org-agenda-add-time-grid-maybe         1           7.4e-05       7.4e-05
| org-downcase-keep-props                7           7.2e-05       1.028...e-05
| org-at-table-p                         1           7.2e-05       7.2e-05
| org-extract-log-state-settings         2           7.1e-05       3.55e-05
| org-get-todo-face                      7           6.9e-05       9.857...e-06
| org-set-visibility-according-to-property 1           6.1e-05       6.1e-05
| org-cycle-hide-drawers                 2           5.9e-05       2.95e-05
| org-minutes-to-hh:mm-string            1           5.7e-05       5.7e-05
| org-table-end                          1           5.2e-05       5.2e-05
| org-set-font-lock-defaults             1           5.1e-05       5.1e-05
| org-agenda-set-mode-name               1           5e-05         5e-05
| org-make-options-regexp                1           5e-05         5e-05
| org-overview                           1           4.4e-05       4.4e-05
| org-set-autofill-regexps               1           4.2e-05       4.2e-05
| org-agenda-reset-markers               1           3.5e-05       3.5e-05
| org-assign-fast-keys                   1           3.3e-05       3.3e-05
| org-make-overlay                       2           3.200...e-05  1.600...e-05
| org-hide-archived-subtrees             1           3.2e-05       3.2e-05
| org-table-goto-column                  1           3.1e-05       3.1e-05
| org-overlay-put                        4           3.1e-05       7.75e-06
| org-table-current-column               1           2.6e-05       2.6e-05
| org-hide-wide-columns                  1           2.4e-05       2.4e-05
| org-optimize-window-after-visibility-change 1      2.1e-05       2.1e-05
| org-overlays-in                        1           1.8e-05       1.8e-05
| org-font-lock-add-tag-faces            2           1.8e-05       9e-06
| org-delete-overlay                     2           1.7e-05       8.5e-06
| org-agenda-post-command-hook           1           1.7e-05       1.7e-05
| org-agenda-deadline-face               1           1.7e-05       1.7e-05
| org-add-to-invisibility-spec           2           1.6e-05       8e-06
| org-compute-latex-and-specials-regexp  1           1.3e-05       1.3e-05
| org-load-modules-maybe                 2           1.2e-05       6e-06
| org-region-active-p                    1           1.2e-05       1.2e-05
| org-overlay-get                        2           1.1e-05       5.5e-06
| org-font-lock-hook                     1           1.1e-05       1.1e-05
| org-plist-delete                       1           1.1e-05       1.1e-05
| org-do-latex-and-special-faces         1           1e-05         1e-05
| org-delete-all                         1           9e-06         9e-06
| org-unhighlight                        1           9e-06         9e-06
| org-agenda-ndays-to-span               2           8.000...e-06  4.000...e-06
| org-check-running-clock                1           8e-06         8e-06
| org-activate-target-links              1           8e-06         8e-06
| org-restart-font-lock                  1           7e-06         7e-06
| org-set-sorting-strategy               1           6e-06         6e-06
| org-clock-load                         1           6e-06         6e-06
| org-make-target-link-regexp            1           4e-06         4e-06
`----

These are on an Asus eee pc model 700 with emacs 23.0.92.1
(emacs-snapshot debian package) and org-mode 6.26a (also debian
package).

Hope this helps.
Thanks again,
eric

^ permalink raw reply	[flat|nested] 41+ messages in thread

* Re: Re: org-mode on sloooow computer
  2009-04-24  9:22     ` Eric S Fraga
@ 2009-04-24  9:42       ` Carsten Dominik
  2009-04-24  9:51         ` Eric S Fraga, Eric S Fraga
  2009-04-24 10:25         ` Eric S Fraga
  0 siblings, 2 replies; 41+ messages in thread
From: Carsten Dominik @ 2009-04-24  9:42 UTC (permalink / raw)
  To: Eric S Fraga; +Cc: emacs-orgmode

Interesting.

How many entries did this search return?

Could you do me a favor, get the git version I just pushed and try
to repeat the same command under the same conditions (compiled or  
uncompiled, org stuff pre-loaded because of a previous agenda  
command....).

I may have made it quite a bit faster - thought I did this a long time  
ago, but it appears that I forgot to remove an important instance of  
org-up-heading-all.....

Thanks.

- Carsten

On Apr 24, 2009, at 11:22 AM, Eric S Fraga wrote:

> Carsten Dominik <carsten.dominik@gmail.com> writes:
>>
>> Are both of you running compiled Lisp code?
>
> yes.  I install org-mode from debian unstable which compiles all the
> lisp codes.
>
>>
>> Are you using day view or week view (which makes 7 day views....)
>
> day view (used to use week view but was trying to speed things up).
>
>> The following would be interesting:
>> [...]
>>    M-x elp-results
>>
>> and post the resulting buffer.
>
> I asked for agenda view (^caa) and get the following results:
>
> ,----
> | org-agenda                             1           4.358551       
> 4.358551
> | org-agenda-list                        1           4.116562       
> 4.116562
> | org-agenda-get-day-entries             6           3.4978960000   
> 0.5829826666
> | org-get-tags-at                        106         3.2642069999   
> 0.0307944056
> | org-up-heading-all                     247         3.2176039999   
> 0.0130267368
> | org-agenda-get-scheduled               6           2.660075       
> 0.4433458333
> | org-outline-level                      20216       1.4954959999   
> 7.397...e-05
> | org-agenda-get-deadlines               6           0.732624       
> 0.122104
> | org-dblock-write:clocktable            7           0.549022       
> 0.0784317142
> | org-get-clocktable                     1           0.395574       
> 0.395574
> | org-update-dblock                      1           0.3571560000   
> 0.3571560000
> | org-prepare-agenda-buffers             2           0.2724330000   
> 0.1362165000
> | org-agenda-get-restriction-and-command 1           0.241765       
> 0.241765
> | org-clock-sum                          6           0.191091       
> 0.0318485
> | org-prepare-agenda                     1           0.144341       
> 0.144341
> | org-refresh-category-properties        12          0.082294       
> 0.0068578333
> | org-agenda-get-timestamps              6           0.0549949999   
> 0.0091658333
> | org-get-agenda-file-buffer             18          0.047752       
> 0.0026528888
> | org-find-base-buffer-visiting          18          0.0470599999   
> 0.0026144444
> | org-get-entries-from-diary             1           0.040401       
> 0.040401
> | org-get-todo-state                     107         0.0315449999   
> 0.0002948130
> | org-back-to-heading                    232         0.0292360000   
> 0.0001260172
> | org-time-string-to-absolute            111         0.0250619999   
> 0.0002257837
> | org-end-of-subtree                     11          0.0241239999   
> 0.0021930909
> | org-agenda-get-blocks                  6           0.017011       
> 0.0028351666
> | org-parse-time-string                  215         0.0162690000   
> 7.566...e-05
> | org-agenda-get-sexps                   6           0.0134749999   
> 0.0022458333
> | org-agenda-files                       6           0.0126670000   
> 0.0021111666
> | org-fit-agenda-window                  1           0.010794       
> 0.010794
> | org-fit-window-to-buffer               2           0.010633       
> 0.0053165
> | org-mode                               1           0.008961       
> 0.008961
> | org-check-agenda-file                  18          0.008071       
> 0.0004483888
> | org-get-priority                       8           0.0079779999   
> 0.0009972499
> | org-format-agenda-item                 8           0.0069479999   
> 0.0008684999
> | org-agenda-skip                        121         0.006809       
> 5.627...e-05
> | org-finalize-agenda-entries            1           0.006645       
> 0.006645
> | org-install-agenda-files-menu          1           0.003953       
> 0.003953
> | org-finalize-agenda                    1           0.003672       
> 0.003672
> | org-get-effort                         8           0.003324       
> 0.0004155
> | org-agenda-mode                        1           0.003274       
> 0.003274
> | org-entry-get                          8           0.0031469999   
> 0.0003933749
> | org-agenda-highlight-todo              8           0.0031160000   
> 0.0003895000
> | org-table-align                        1           0.002933       
> 0.002933
> | org-get-property-block                 8           0.002703       
> 0.000337875
> | org-agenda-align-tags                  1           0.002667       
> 0.002667
> | org-split-string                       74          0.0021859999   
> 2.954...e-05
> | org-create-dblock                      1           0.002171       
> 0.002171
> | org-entries-lessp                      16          0.002107       
> 0.0001316875
> | org-switch-to-buffer-other-window      1           0.001576       
> 0.001576
> | org-agenda-todayp                      12          0.0015239999   
> 0.0001269999
> | org-set-startup-visibility             1           0.001405       
> 0.001405
> | org-get-category                       107         0.0012670000   
> 1.184...e-05
> | org-closest-date                       4           0.001067       
> 0.00026675
> | org-cycle                              1           0.00104        
> 0.00104
> | org-add-props                          21          0.0009069999   
> 4.319...e-05
> | org-time-string-to-time                6           0.000892       
> 0.0001486666
> | org-prepare-dblock                     1           0.000882       
> 0.000882
> | org-remove-uniherited-tags             149         0.0008630000   
> 5.791...e-06
> | org-at-date-range-p                    8           0.000856       
> 0.000107
> | org-set-regexps-and-options            1           0.000847       
> 0.000847
> | org-get-wdays                          20          0.000799       
> 3.995e-05
> | org-agenda-fontify-priorities          1           0.000659       
> 0.000659
> | org-before-change-function             76          0.0006260000   
> 8.236...e-06
> | org-on-heading-p                       6           0.000614       
> 0.0001023333
> | org-agenda-cleanup-fancy-diary         1           0.000487       
> 0.000487
> | org-date-to-gregorian                  8           0.000484       
> 6.05e-05
> | org-add-prop-inherited                 54          0.0004749999   
> 8.796...e-06
> | org-agenda-add-inherited-tags          8           0.000443       
> 5.5375e-05
> | org-diary-sexp-entry                   2           0.0004179999   
> 0.0002089999
> | org-diary-default-entry                1           0.000394       
> 0.000394
> | org-add-to-diary-list                  1           0.000368       
> 0.000368
> | org-agenda-new-marker                  18          0.000363       
> 2.016...e-05
> | org-do-emphasis-faces                  3           0.000362       
> 0.0001206666
> | org-modify-diary-entry-string          1           0.000333       
> 0.000333
> | org-activate-bracket-links             2           0.0003090000   
> 0.0001545000
> | org-activate-footnote-links            1           0.000279       
> 0.000279
> | org-uniquify                           6           0.0002670000   
> 4.450...e-05
> | org-agenda-format-date-aligned         1           0.000247       
> 0.000247
> | org-get-time-of-day                    2           0.000235       
> 0.0001175
> | org-cycle-show-empty-lines             2           0.0002089999   
> 0.0001044999
> | org-compile-prefix-format              1           0.000205       
> 0.000205
> | org-activate-dates                     2           0.00019        
> 9.5e-05
> | org-days-to-iso-week                   3           0.000189       
> 6.3e-05
> | org-activate-plain-links               1           0.000165       
> 0.000165
> | org-update-radio-target-regexp         1           0.000156       
> 0.000156
> | org-file-menu-entry                    12          0.000135       
> 1.125e-05
> | org-table-begin                        1           0.000106       
> 0.000106
> | org-cycle-hide-archived-subtrees       2           0.0001020000   
> 5.100...e-05
> | org-activate-tags                      1           9.4e-05        
> 9.4e-05
> | org-activate-angle-links               1           9.1e-05        
> 9.1e-05
> | org-activate-code                      1           9.1e-05        
> 9.1e-05
> | org-all-targets                        1           8.9e-05        
> 8.9e-05
> | org-string-width                       8           8.5e-05        
> 1.0625e-05
> | org-add-hook                           4           7.999...e-05   
> 1.999...e-05
> | org-unfontify-region                   2           7.9e-05        
> 3.95e-05
> | org-font-lock-add-priority-faces       1           7.5e-05        
> 7.5e-05
> | org-agenda-add-time-grid-maybe         1           7.4e-05        
> 7.4e-05
> | org-downcase-keep-props                7           7.2e-05        
> 1.028...e-05
> | org-at-table-p                         1           7.2e-05        
> 7.2e-05
> | org-extract-log-state-settings         2           7.1e-05        
> 3.55e-05
> | org-get-todo-face                      7           6.9e-05        
> 9.857...e-06
> | org-set-visibility-according-to-property 1           6.1e-05        
> 6.1e-05
> | org-cycle-hide-drawers                 2           5.9e-05        
> 2.95e-05
> | org-minutes-to-hh:mm-string            1           5.7e-05        
> 5.7e-05
> | org-table-end                          1           5.2e-05        
> 5.2e-05
> | org-set-font-lock-defaults             1           5.1e-05        
> 5.1e-05
> | org-agenda-set-mode-name               1           5e-05          
> 5e-05
> | org-make-options-regexp                1           5e-05          
> 5e-05
> | org-overview                           1           4.4e-05        
> 4.4e-05
> | org-set-autofill-regexps               1           4.2e-05        
> 4.2e-05
> | org-agenda-reset-markers               1           3.5e-05        
> 3.5e-05
> | org-assign-fast-keys                   1           3.3e-05        
> 3.3e-05
> | org-make-overlay                       2           3.200...e-05   
> 1.600...e-05
> | org-hide-archived-subtrees             1           3.2e-05        
> 3.2e-05
> | org-table-goto-column                  1           3.1e-05        
> 3.1e-05
> | org-overlay-put                        4           3.1e-05        
> 7.75e-06
> | org-table-current-column               1           2.6e-05        
> 2.6e-05
> | org-hide-wide-columns                  1           2.4e-05        
> 2.4e-05
> | org-optimize-window-after-visibility-change 1      2.1e-05        
> 2.1e-05
> | org-overlays-in                        1           1.8e-05        
> 1.8e-05
> | org-font-lock-add-tag-faces            2           1.8e-05        
> 9e-06
> | org-delete-overlay                     2           1.7e-05        
> 8.5e-06
> | org-agenda-post-command-hook           1           1.7e-05        
> 1.7e-05
> | org-agenda-deadline-face               1           1.7e-05        
> 1.7e-05
> | org-add-to-invisibility-spec           2           1.6e-05        
> 8e-06
> | org-compute-latex-and-specials-regexp  1           1.3e-05        
> 1.3e-05
> | org-load-modules-maybe                 2           1.2e-05        
> 6e-06
> | org-region-active-p                    1           1.2e-05        
> 1.2e-05
> | org-overlay-get                        2           1.1e-05        
> 5.5e-06
> | org-font-lock-hook                     1           1.1e-05        
> 1.1e-05
> | org-plist-delete                       1           1.1e-05        
> 1.1e-05
> | org-do-latex-and-special-faces         1           1e-05          
> 1e-05
> | org-delete-all                         1           9e-06          
> 9e-06
> | org-unhighlight                        1           9e-06          
> 9e-06
> | org-agenda-ndays-to-span               2           8.000...e-06   
> 4.000...e-06
> | org-check-running-clock                1           8e-06          
> 8e-06
> | org-activate-target-links              1           8e-06          
> 8e-06
> | org-restart-font-lock                  1           7e-06          
> 7e-06
> | org-set-sorting-strategy               1           6e-06          
> 6e-06
> | org-clock-load                         1           6e-06          
> 6e-06
> | org-make-target-link-regexp            1           4e-06          
> 4e-06
> `----
>
> These are on an Asus eee pc model 700 with emacs 23.0.92.1
> (emacs-snapshot debian package) and org-mode 6.26a (also debian
> package).
>
> Hope this helps.
> Thanks again,
> eric
>
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

^ permalink raw reply	[flat|nested] 41+ messages in thread

* Re: Re: org-mode on sloooow computer
  2009-04-24  9:42       ` Carsten Dominik
@ 2009-04-24  9:51         ` Eric S Fraga, Eric S Fraga
  2009-04-24 10:25         ` Eric S Fraga
  1 sibling, 0 replies; 41+ messages in thread
From: Eric S Fraga, Eric S Fraga @ 2009-04-24  9:51 UTC (permalink / raw)
  To: Carsten Dominik; +Cc: emacs-orgmode

Carsten Dominik writes:
> Interesting.
> 
> How many entries did this search return?

Today, only 8 scheduled tasks, no diary entries, and no information in
the clock table (it's my "get things done day" ;-).  Yesterday was a
much busier day with a handful more scheduled todos, 5 meetings and 4+
entries in the clock table.

> Could you do me a favor, get the git version I just pushed and try
> to repeat the same command under the same conditions (compiled or  
> uncompiled, org stuff pre-loaded because of a previous agenda  
> command....).

I'll try.  Back to you soon.

^ permalink raw reply	[flat|nested] 41+ messages in thread

* Re: org-mode on sloooow computer
  2009-04-24  9:42       ` Carsten Dominik
  2009-04-24  9:51         ` Eric S Fraga, Eric S Fraga
@ 2009-04-24 10:25         ` Eric S Fraga
  2009-04-24 11:35           ` Carsten Dominik
  1 sibling, 1 reply; 41+ messages in thread
From: Eric S Fraga @ 2009-04-24 10:25 UTC (permalink / raw)
  To: emacs-orgmode

Carsten Dominik <carsten.dominik@gmail.com> writes:

> Could you do me a favor, get the git version I just pushed and try
> to repeat the same command under the same conditions (compiled or
> uncompiled, org stuff pre-loaded because of a previous agenda
> command....).

Results (with org-mode version 6.26trans):

org-agenda                             1           2.074879      2.074879
org-agenda-list                        1           1.754133      1.754133
org-agenda-get-day-entries             6           1.106589      0.1844315
org-agenda-get-scheduled               6           0.5947910000  0.0991318333
org-get-tags-at                        106         0.5802819999  0.0054743584
org-dblock-write:clocktable            7           0.572584      0.0817977142
org-up-heading-safe                    247         0.5419000000  0.0021939271
org-get-clocktable                     1           0.417553      0.417553
org-update-dblock                      1           0.380027      0.380027
org-get-agenda-file-buffer             18          0.3513120000  0.0195173333
org-find-base-buffer-visiting          18          0.3506030000  0.0194779444
org-agenda-get-restriction-and-command 1           0.3205599999  0.3205599999
org-prepare-agenda-buffers             2           0.28367       0.141835
org-clock-sum                          6           0.191555      0.0319258333
org-prepare-agenda                     1           0.151539      0.151539
org-agenda-get-deadlines               6           0.13392       0.0223200000
org-refresh-category-properties        12          0.082914      0.0069095
org-get-entries-from-diary             1           0.042627      0.042627
org-back-to-heading                    479         0.0387500000  8.089...e-05
org-agenda-get-timestamps              6           0.034261      0.0057101666
org-get-todo-state                     107         0.0311520000  0.0002911401
org-time-string-to-absolute            111         0.0250680000  0.0002258378
org-end-of-subtree                     11          0.023868      0.0021698181
org-agenda-files                       6           0.0180800000  0.0030133333
org-agenda-get-blocks                  6           0.017015      0.0028358333
org-parse-time-string                  215         0.0165329999  7.689...e-05
org-agenda-get-sexps                   6           0.0132720000  0.0022120000
org-fit-window-to-buffer               2           0.013012      0.006506
org-outline-level                      518         0.0104180000  2.011...e-05
org-check-agenda-file                  18          0.009251      0.0005139444
org-mode                               1           0.008785      0.008785
org-get-priority                       8           0.008004      0.0010005
org-fit-agenda-window                  1           0.007067      0.007067
org-finalize-agenda-entries            1           0.006866      0.006866
org-format-agenda-item                 8           0.0068330000  0.0008541250
org-agenda-skip                        121         0.0066789999  5.519...e-05
org-agenda-mode                        1           0.003775      0.003775
org-install-agenda-files-menu          1           0.003731      0.003731
org-finalize-agenda                    1           0.003599      0.003599
org-agenda-highlight-todo              8           0.0033209999  0.0004151249
org-get-effort                         8           0.00324       0.000405
org-entry-get                          8           0.003078      0.00038475
org-table-align                        1           0.003061      0.003061
org-get-property-block                 8           0.0026799999  0.0003349999
org-agenda-align-tags                  1           0.002598      0.002598
org-create-dblock                      1           0.002287      0.002287
org-split-string                       74          0.0021340000  2.883...e-05
org-entries-lessp                      16          0.0020989999  0.0001311874
org-switch-to-buffer-other-window      2           0.001621      0.0008105
org-agenda-todayp                      12          0.001507      0.0001255833
org-set-startup-visibility             1           0.001377      0.001377
org-get-category                       107         0.0013250000  1.238...e-05
org-add-props                          21          0.0010390000  4.947...e-05
org-cycle                              1           0.001006      0.001006
org-closest-date                       4           0.001002      0.0002505
org-time-string-to-time                6           0.000926      0.0001543333
org-set-regexps-and-options            1           0.00086       0.00086
org-at-date-range-p                    8           0.00086       0.0001075
org-cycle-internal-global              1           0.000825      0.000825
org-prepare-dblock                     1           0.000816      0.000816
org-get-wdays                          20          0.0007649999  3.824...e-05
org-remove-uniherited-tags             149         0.0007620000  5.114...e-06
org-before-change-function             76          0.00068       8.947...e-06
org-on-heading-p                       6           0.0006649999  0.0001108333
org-agenda-fontify-priorities          1           0.000596      0.000596
org-agenda-add-inherited-tags          8           0.0005399999  6.749...e-05
org-agenda-cleanup-fancy-diary         1           0.000453      0.000453
org-date-to-gregorian                  8           0.0004469999  5.587...e-05
org-add-prop-inherited                 54          0.000443      8.203...e-06
org-agenda-new-marker                  18          0.000424      2.355...e-05
org-do-emphasis-faces                  3           0.0003779999  0.000126
org-diary-default-entry                1           0.000316      0.000316
org-diary-sexp-entry                   2           0.0002929999  0.0001464999
org-add-to-diary-list                  1           0.000291      0.000291
org-activate-footnote-links            1           0.000277      0.000277
org-activate-bracket-links             2           0.000263      0.0001315
org-uniquify                           6           0.0002560000  4.266...e-05
org-modify-diary-entry-string          1           0.000256      0.000256
org-compile-prefix-format              1           0.000225      0.000225
org-cycle-show-empty-lines             2           0.000201      0.0001005
org-agenda-format-date-aligned         1           0.000201      0.000201
org-get-time-of-day                    2           0.0001909999  9.549...e-05
org-days-to-iso-week                   3           0.0001819999  6.066...e-05
org-activate-dates                     2           0.000178      8.9e-05
org-update-radio-target-regexp         1           0.00017       0.00017
org-activate-plain-links               1           0.00015       0.00015
org-agenda-add-time-grid-maybe         1           0.000128      0.000128
org-file-menu-entry                    12          0.000126      1.05e-05
org-table-begin                        1           0.000118      0.000118
org-cycle-hide-archived-subtrees       2           0.000107      5.35e-05
org-activate-tags                      1           9.8e-05       9.8e-05
org-activate-code                      1           9.3e-05       9.3e-05
org-activate-angle-links               1           8.5e-05       8.5e-05
org-string-width                       8           8.300...e-05  1.037...e-05
org-extract-log-state-settings         2           8.3e-05       4.15e-05
org-unfontify-region                   2           8.1e-05       4.05e-05
org-font-lock-add-priority-faces       1           7.8e-05       7.8e-05
org-all-targets                        1           7.7e-05       7.7e-05
org-get-todo-face                      7           7.5e-05       1.071...e-05
org-add-hook                           4           7.3e-05       1.825e-05
org-at-table-p                         1           7.2e-05       7.2e-05
org-downcase-keep-props                7           6.900...e-05  9.857...e-06
org-set-font-lock-defaults             1           6.6e-05       6.6e-05
org-set-visibility-according-to-property 1           6.5e-05       6.5e-05
org-cycle-hide-drawers                 2           6.4e-05       3.2e-05
org-minutes-to-hh:mm-string            1           5.8e-05       5.8e-05
org-table-end                          1           5.2e-05       5.2e-05
org-make-options-regexp                1           4.7e-05       4.7e-05
org-overview                           1           4.5e-05       4.5e-05
org-agenda-set-mode-name               1           4.3e-05       4.3e-05
org-set-autofill-regexps               1           3.9e-05       3.9e-05
org-assign-fast-keys                   1           3.8e-05       3.8e-05
org-table-goto-column                  1           3.4e-05       3.4e-05
org-hide-archived-subtrees             1           3.2e-05       3.2e-05
org-make-overlay                       2           2.8e-05       1.4e-05
org-table-current-column               1           2.8e-05       2.8e-05
org-plist-delete                       1           2.7e-05       2.7e-05
org-hide-wide-columns                  1           2.6e-05       2.6e-05
org-overlay-put                        4           2.4e-05       6e-06
org-restart-font-lock                  1           2e-05         2e-05
org-add-to-invisibility-spec           2           1.9e-05       9.5e-06
org-agenda-deadline-face               1           1.8e-05       1.8e-05
org-agenda-post-command-hook           1           1.5e-05       1.5e-05
org-optimize-window-after-visibility-change 1           1.4e-05       1.4e-05
org-font-lock-add-tag-faces            2           1.4e-05       7e-06
org-font-lock-hook                     1           1.3e-05       1.3e-05
org-overlays-in                        1           1.2e-05       1.2e-05
org-activate-target-links              1           1.2e-05       1.2e-05
org-region-active-p                    1           1.1e-05       1.1e-05
org-check-running-clock                1           1e-05         1e-05
org-do-latex-and-special-faces         1           1e-05         1e-05
org-delete-all                         1           1e-05         1e-05
org-compute-latex-and-specials-regexp  1           1e-05         1e-05
org-unhighlight                        1           1e-05         1e-05
org-load-modules-maybe                 2           9.999...e-06  4.999...e-06
org-agenda-ndays-to-span               2           9e-06         4.5e-06
org-clock-load                         1           6e-06         6e-06
org-agenda-reset-markers               1           5e-06         5e-06
org-set-sorting-strategy               1           5e-06         5e-06
org-make-target-link-regexp            1           4e-06         4e-06

Does seem faster!  Numbers indicate a 2x improvement?

^ permalink raw reply	[flat|nested] 41+ messages in thread

* Re: Re: org-mode on sloooow computer
  2009-04-24 10:25         ` Eric S Fraga
@ 2009-04-24 11:35           ` Carsten Dominik
  2009-04-24 12:51             ` Matthew Lundin
  2009-04-24 15:27             ` Leo
  0 siblings, 2 replies; 41+ messages in thread
From: Carsten Dominik @ 2009-04-24 11:35 UTC (permalink / raw)
  To: Eric S Fraga; +Cc: emacs-orgmode


On Apr 24, 2009, at 12:25 PM, Eric S Fraga wrote:

> Does seem faster!  Numbers indicate a 2x improvement?

Yes.

With some more improvements (available now) this should get down to  
1.5 seconds.
Not perfect, but almost a factor of three from the original 4.35  
seconds.

Please, everybody watch out for strange behavior in the agenda, to  
make sure I have not messed up anything while doing the optimization.

We should to profiling more often, this can apparently make a big  
difference.....

- Carsten

^ permalink raw reply	[flat|nested] 41+ messages in thread

* Re: Re: org-mode on sloooow computer
  2009-04-24 11:35           ` Carsten Dominik
@ 2009-04-24 12:51             ` Matthew Lundin
  2009-04-24 15:27             ` Leo
  1 sibling, 0 replies; 41+ messages in thread
From: Matthew Lundin @ 2009-04-24 12:51 UTC (permalink / raw)
  To: Carsten Dominik; +Cc: emacs-orgmode, Eric S Fraga

Carsten Dominik <carsten.dominik@gmail.com> writes:

> On Apr 24, 2009, at 12:25 PM, Eric S Fraga wrote:
>
> With some more improvements (available now) this should get down to
> 1.5 seconds.
> Not perfect, but almost a factor of three from the original 4.35
> seconds.
>
> Please, everybody watch out for strange behavior in the agenda, to
> make sure I have not messed up anything while doing the optimization.
>

Wow. I am really impressed. The agenda is lightning fast this morning.
Thanks, Carsten!

I haven't seen any unusual behavior yet - but I'll let you know if I do.

Best,
Matt

^ permalink raw reply	[flat|nested] 41+ messages in thread

* Re: org-mode on sloooow computer
  2009-04-24  9:01         ` Carsten Dominik
@ 2009-04-24 13:37           ` Rainer Stengele
  2009-04-24 13:49             ` Carsten Dominik
  2009-04-24 14:47             ` Carsten Dominik
  0 siblings, 2 replies; 41+ messages in thread
From: Rainer Stengele @ 2009-04-24 13:37 UTC (permalink / raw)
  Cc: emacs-orgmode, e.fraga

Hi Carsten,

strange enough the latest git version does not improve time for my agenda at all.
It still is as slow or fast - however you see it.

org-version is 6.26trans

,----
| org-run-agenda-series                                         1           1.797         1.797
| org-agenda                                                    1           1.797         1.797
| org-let2                                                      2           1.422         0.711
| org-agenda-get-day-entries                                    12          1.248         0.104
| org-agenda-list                                               1           1.2349999999  1.2349999999
| org-agenda-get-scheduled                                      10          0.7979999999  0.0798
| org-end-of-subtree                                            1533        0.6430000000  0.0004194390
| org-prepare-agenda                                            3           0.359         0.1196666666
| org-prepare-agenda-buffers                                    1           0.25          0.25
| org-back-to-heading                                           2198        0.1880000000  8.55...e-005
| org-todo-list                                                 1           0.187         0.187
| org-agenda-get-todos                                          2           0.171         0.0855
| org-refresh-category-properties                               2           0.141         0.0705
| org-get-entries-from-diary                                    5           0.126         0.0252
| org-agenda-get-deadlines                                      10          0.107         0.0107
| org-agenda-get-timestamps                                     10          0.078         0.0078
| org-outline-level                                             5376        0.064         1.19...e-005
| org-agenda-skip-if                                            167         0.061         0.0003652694
| org-agenda-skip-entry-if                                      167         0.061         0.0003652694
| org-agenda-get-blocks                                         10          0.046         0.0046
| org-check-agenda-file                                         14          0.032         0.0022857142
| org-get-todo-state                                            333         0.031         9.30...e-005
| org-finalize-agenda                                           3           0.016         0.0053333333
| org-time-string-to-absolute                                   1627        0.016         9.83...e-006
| org-agenda-get-sexps                                          10          0.016         0.0016
| org-at-date-range-p                                           217         0.016         7.37...e-005
| org-agenda-align-tags                                         1           0.016         0.016
| org-let                                                       1           0.016         0.016
| org-agenda-files                                              4           0.015         0.00375
| org-agenda-skip                                               3213        0.015         4.66...e-006
| org-on-heading-p                                              164         0.015         9.14...e-005
| org-agenda-set-mode-name                                      1           0.0           0.0
| org-date-to-gregorian                                         474         0.0           0.0
| org-delete-overlay                                            65          0.0           0.0
| org-agenda-reset-markers                                      1           0.0           0.0
| org-find-base-buffer-visiting                                 14          0.0           0.0
| org-set-sorting-strategy                                      2           0.0           0.0
| org-get-effort                                                69          0.0           0.0
| org-downcase-keep-props                                       41          0.0           0.0
| org-get-agenda-file-buffer                                    14          0.0           0.0
| org-fit-agenda-window                                         1           0.0           0.0
| org-agenda-check-for-timestamp-as-reason-to-ignore-todo-item  189         0.0           0.0
| org-entry-get                                                 69          0.0           0.0
| org-agenda-post-command-hook                                  2           0.0           0.0
| org-overlay-get                                               241         0.0           0.0
| org-agenda-cleanup-fancy-diary                                5           0.0           0.0
| org-get-wdays                                                 150         0.0           0.0
| org-parse-time-string                                         1797        0.0           0.0
| org-entries-lessp                                             215         0.0           0.0
| org-trim                                                      29          0.0           0.0
| org-closest-date                                              237         0.0           0.0
| org-agenda-add-inherited-tags                                 72          0.0           0.0
| org-modify-diary-entry-string                                 5           0.0           0.0
| org-make-overlay                                              65          0.0           0.0
| org-file-menu-entry                                           2           0.0           0.0
| org-add-to-diary-list                                         5           0.0           0.0
| org-split-string                                              39          0.0           0.0
| org-activate-bracket-links                                    1           0.0           0.0
| org-add-props                                                 186         0.0           0.0
| org-agenda-add-time-grid-maybe                                3           0.0           0.0
| org-get-category                                              69          0.0           0.0
| org-days-to-iso-week                                          3           0.0           0.0
| org-agenda-mode                                               1           0.0           0.0
| org-uniquify                                                  4           0.0           0.0
| org-agenda-new-marker                                         107         0.0           0.0
| org-agenda-todayp                                             20          0.0           0.0
| org-format-agenda-item                                        72          0.0           0.0
| org-overlays-in                                               1           0.0           0.0
| org-get-property-block                                        69          0.0           0.0
| org-fontify-priorities                                        1           0.0           0.0
| org-get-tags-at                                               69          0.0           0.0
| org-overlay-put                                               130         0.0           0.0
| org-get-todo-face                                             68          0.0           0.0
| org-compile-prefix-format                                     2           0.0           0.0
| org-agenda-highlight-todo                                     72          0.0           0.0
| org-agenda-ndays-to-span                                      1           0.0           0.0
| org-agenda-deadline-face                                      4           0.0           0.0
| org-add-hook                                                  2           0.0           0.0
| org-time-string-to-time                                       170         0.0           0.0
| org-agenda-fontify-priorities                                 1           0.0           0.0
| org-agenda-format-date-aligned                                3           0.0           0.0
| org-diary-default-entry                                       5           0.0           0.0
| org-font-lock-add-tag-faces                                   1           0.0           0.0
| org-get-priority                                              69          0.0           0.0
| org-remove-uniherited-tags                                    69          0.0           0.0
| org-get-time-of-day                                           37          0.0           0.0
| org-finalize-agenda-entries                                   4           0.0           0.0
| org-unhighlight                                               2           0.0           0.0
| org-before-change-function                                    199         0.0           0.0
`----

my org file is about 15000 lines large.


Rainer


Carsten Dominik schrieb:
> 
> On Apr 24, 2009, at 10:24 AM, Eric S Fraga wrote:
> 
>> Carsten Dominik writes:
>>> On Apr 24, 2009, at 12:10 AM, Eric S Fraga wrote:
>>>> Which part can you not reproduce?
>>>
>>> When I have the agenda on an arbitrary date, pressing "j" does *not*
>>> first switch the agenda to today.
>>
>> <blush>
>>
>> Okay, the problem was mine: I had included a very useful method,
>> originally from Tassilo (cf. th-calendar-open-agenda), which would
>> have the agenda view updated when the calendar view changed.  Removing
>> this gives the behaviour I was now looking for, and which is indeed
>> the default behaviour.  Apologies for the noise.
>>
>> </blush>
>>
>> Actually, this experience is a testament to the insidious nature (in a
>> positive way) of org-mode: it is taking over my life!  I used to have
>> the Emacs diary + calendar as the focus of my attention for task and
>> time management and org-mode was initially an addition to this.
>> org-mode is now almost completely the focus and I really need to clean
>> up my customisations to remove the old vestiges of how I used to work.
>>
>> Again, apologies and continued thanks for an excellent system which I
>> could no longer live without!
> 
> I still would like to to see profiling information as I described in my
> message from yesterday, so see if specific operations are particularly
> slow on netbooks or a zaurus.
> 
> - Carsten
> 
> 
> 
> 
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
> 

^ permalink raw reply	[flat|nested] 41+ messages in thread

* Re: org-mode on sloooow computer
  2009-04-24 13:37           ` Rainer Stengele
@ 2009-04-24 13:49             ` Carsten Dominik
  2009-04-24 15:47               ` Eric S Fraga, Eric S Fraga
  2009-04-24 14:47             ` Carsten Dominik
  1 sibling, 1 reply; 41+ messages in thread
From: Carsten Dominik @ 2009-04-24 13:49 UTC (permalink / raw)
  To: Rainer Stengele; +Cc: emacs-orgmode, e.fraga


On Apr 24, 2009, at 3:37 PM, Rainer Stengele wrote:

> Hi Carsten,
>
> strange enough the latest git version does not improve time for my  
> agenda at all.
> It still is as slow or fast - however you see it.

I think you have tag inheritance turned off, or you have everything in  
top-level entries.

 From todays adjustments, the people who will benefit the most are  
those who have a very large number of siblings on arbitrary levels,  
and who, at the same time, use tag inheritance.

- Carsten

>
> org-version is 6.26trans
>
> ,----
> | org-run-agenda-series                                          
> 1           1.797         1.797
> | org-agenda                                                     
> 1           1.797         1.797
> | org-let2                                                       
> 2           1.422         0.711
> | org-agenda-get-day-entries                                     
> 12          1.248         0.104
> | org-agenda-list                                                
> 1           1.2349999999  1.2349999999
> | org-agenda-get-scheduled                                       
> 10          0.7979999999  0.0798
> | org-end-of-subtree                                             
> 1533        0.6430000000  0.0004194390
> | org-prepare-agenda                                             
> 3           0.359         0.1196666666
> | org-prepare-agenda-buffers                                     
> 1           0.25          0.25
> | org-back-to-heading                                            
> 2198        0.1880000000  8.55...e-005
> | org-todo-list                                                  
> 1           0.187         0.187
> | org-agenda-get-todos                                           
> 2           0.171         0.0855
> | org-refresh-category-properties                                
> 2           0.141         0.0705
> | org-get-entries-from-diary                                     
> 5           0.126         0.0252
> | org-agenda-get-deadlines                                       
> 10          0.107         0.0107
> | org-agenda-get-timestamps                                      
> 10          0.078         0.0078
> | org-outline-level                                              
> 5376        0.064         1.19...e-005
> | org-agenda-skip-if                                             
> 167         0.061         0.0003652694
> | org-agenda-skip-entry-if                                       
> 167         0.061         0.0003652694
> | org-agenda-get-blocks                                          
> 10          0.046         0.0046
> | org-check-agenda-file                                          
> 14          0.032         0.0022857142
> | org-get-todo-state                                             
> 333         0.031         9.30...e-005
> | org-finalize-agenda                                            
> 3           0.016         0.0053333333
> | org-time-string-to-absolute                                    
> 1627        0.016         9.83...e-006
> | org-agenda-get-sexps                                           
> 10          0.016         0.0016
> | org-at-date-range-p                                            
> 217         0.016         7.37...e-005
> | org-agenda-align-tags                                          
> 1           0.016         0.016
> | org-let                                                        
> 1           0.016         0.016
> | org-agenda-files                                               
> 4           0.015         0.00375
> | org-agenda-skip                                                
> 3213        0.015         4.66...e-006
> | org-on-heading-p                                               
> 164         0.015         9.14...e-005
> | org-agenda-set-mode-name                                       
> 1           0.0           0.0
> | org-date-to-gregorian                                          
> 474         0.0           0.0
> | org-delete-overlay                                             
> 65          0.0           0.0
> | org-agenda-reset-markers                                       
> 1           0.0           0.0
> | org-find-base-buffer-visiting                                  
> 14          0.0           0.0
> | org-set-sorting-strategy                                       
> 2           0.0           0.0
> | org-get-effort                                                 
> 69          0.0           0.0
> | org-downcase-keep-props                                        
> 41          0.0           0.0
> | org-get-agenda-file-buffer                                     
> 14          0.0           0.0
> | org-fit-agenda-window                                          
> 1           0.0           0.0
> | org-agenda-check-for-timestamp-as-reason-to-ignore-todo-item   
> 189         0.0           0.0
> | org-entry-get                                                  
> 69          0.0           0.0
> | org-agenda-post-command-hook                                   
> 2           0.0           0.0
> | org-overlay-get                                                
> 241         0.0           0.0
> | org-agenda-cleanup-fancy-diary                                 
> 5           0.0           0.0
> | org-get-wdays                                                  
> 150         0.0           0.0
> | org-parse-time-string                                          
> 1797        0.0           0.0
> | org-entries-lessp                                              
> 215         0.0           0.0
> | org-trim                                                       
> 29          0.0           0.0
> | org-closest-date                                               
> 237         0.0           0.0
> | org-agenda-add-inherited-tags                                  
> 72          0.0           0.0
> | org-modify-diary-entry-string                                  
> 5           0.0           0.0
> | org-make-overlay                                               
> 65          0.0           0.0
> | org-file-menu-entry                                            
> 2           0.0           0.0
> | org-add-to-diary-list                                          
> 5           0.0           0.0
> | org-split-string                                               
> 39          0.0           0.0
> | org-activate-bracket-links                                     
> 1           0.0           0.0
> | org-add-props                                                  
> 186         0.0           0.0
> | org-agenda-add-time-grid-maybe                                 
> 3           0.0           0.0
> | org-get-category                                               
> 69          0.0           0.0
> | org-days-to-iso-week                                           
> 3           0.0           0.0
> | org-agenda-mode                                                
> 1           0.0           0.0
> | org-uniquify                                                   
> 4           0.0           0.0
> | org-agenda-new-marker                                          
> 107         0.0           0.0
> | org-agenda-todayp                                              
> 20          0.0           0.0
> | org-format-agenda-item                                         
> 72          0.0           0.0
> | org-overlays-in                                                
> 1           0.0           0.0
> | org-get-property-block                                         
> 69          0.0           0.0
> | org-fontify-priorities                                         
> 1           0.0           0.0
> | org-get-tags-at                                                
> 69          0.0           0.0
> | org-overlay-put                                                
> 130         0.0           0.0
> | org-get-todo-face                                              
> 68          0.0           0.0
> | org-compile-prefix-format                                      
> 2           0.0           0.0
> | org-agenda-highlight-todo                                      
> 72          0.0           0.0
> | org-agenda-ndays-to-span                                       
> 1           0.0           0.0
> | org-agenda-deadline-face                                       
> 4           0.0           0.0
> | org-add-hook                                                   
> 2           0.0           0.0
> | org-time-string-to-time                                        
> 170         0.0           0.0
> | org-agenda-fontify-priorities                                  
> 1           0.0           0.0
> | org-agenda-format-date-aligned                                 
> 3           0.0           0.0
> | org-diary-default-entry                                        
> 5           0.0           0.0
> | org-font-lock-add-tag-faces                                    
> 1           0.0           0.0
> | org-get-priority                                               
> 69          0.0           0.0
> | org-remove-uniherited-tags                                     
> 69          0.0           0.0
> | org-get-time-of-day                                            
> 37          0.0           0.0
> | org-finalize-agenda-entries                                    
> 4           0.0           0.0
> | org-unhighlight                                                
> 2           0.0           0.0
> | org-before-change-function                                     
> 199         0.0           0.0
> `----
>
> my org file is about 15000 lines large.
>
>
> Rainer
>
>
> Carsten Dominik schrieb:
>>
>> On Apr 24, 2009, at 10:24 AM, Eric S Fraga wrote:
>>
>>> Carsten Dominik writes:
>>>> On Apr 24, 2009, at 12:10 AM, Eric S Fraga wrote:
>>>>> Which part can you not reproduce?
>>>>
>>>> When I have the agenda on an arbitrary date, pressing "j" does  
>>>> *not*
>>>> first switch the agenda to today.
>>>
>>> <blush>
>>>
>>> Okay, the problem was mine: I had included a very useful method,
>>> originally from Tassilo (cf. th-calendar-open-agenda), which would
>>> have the agenda view updated when the calendar view changed.   
>>> Removing
>>> this gives the behaviour I was now looking for, and which is indeed
>>> the default behaviour.  Apologies for the noise.
>>>
>>> </blush>
>>>
>>> Actually, this experience is a testament to the insidious nature  
>>> (in a
>>> positive way) of org-mode: it is taking over my life!  I used to  
>>> have
>>> the Emacs diary + calendar as the focus of my attention for task and
>>> time management and org-mode was initially an addition to this.
>>> org-mode is now almost completely the focus and I really need to  
>>> clean
>>> up my customisations to remove the old vestiges of how I used to  
>>> work.
>>>
>>> Again, apologies and continued thanks for an excellent system  
>>> which I
>>> could no longer live without!
>>
>> I still would like to to see profiling information as I described  
>> in my
>> message from yesterday, so see if specific operations are  
>> particularly
>> slow on netbooks or a zaurus.
>>
>> - Carsten
>>
>>
>>
>>
>> _______________________________________________
>> Emacs-orgmode mailing list
>> Remember: use `Reply All' to send replies to the list.
>> Emacs-orgmode@gnu.org
>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>>
>

^ permalink raw reply	[flat|nested] 41+ messages in thread

* Re: org-mode on sloooow computer
  2009-04-24 13:37           ` Rainer Stengele
  2009-04-24 13:49             ` Carsten Dominik
@ 2009-04-24 14:47             ` Carsten Dominik
  2009-04-28 10:33               ` Rainer Stengele
  1 sibling, 1 reply; 41+ messages in thread
From: Carsten Dominik @ 2009-04-24 14:47 UTC (permalink / raw)
  To: Rainer Stengele; +Cc: emacs-orgmode, e.fraga

I ave just pushed one more optimization which may improve things a bit  
for you, Rainer.

- Carsten

On Apr 24, 2009, at 3:37 PM, Rainer Stengele wrote:

> Hi Carsten,
>
> strange enough the latest git version does not improve time for my  
> agenda at all.
> It still is as slow or fast - however you see it.
>
> org-version is 6.26trans
>
> ,----
> | org-run-agenda-series                                          
> 1           1.797         1.797
> | org-agenda                                                     
> 1           1.797         1.797
> | org-let2                                                       
> 2           1.422         0.711
> | org-agenda-get-day-entries                                     
> 12          1.248         0.104
> | org-agenda-list                                                
> 1           1.2349999999  1.2349999999
> | org-agenda-get-scheduled                                       
> 10          0.7979999999  0.0798
> | org-end-of-subtree                                             
> 1533        0.6430000000  0.0004194390
> | org-prepare-agenda                                             
> 3           0.359         0.1196666666
> | org-prepare-agenda-buffers                                     
> 1           0.25          0.25
> | org-back-to-heading                                            
> 2198        0.1880000000  8.55...e-005
> | org-todo-list                                                  
> 1           0.187         0.187
> | org-agenda-get-todos                                           
> 2           0.171         0.0855
> | org-refresh-category-properties                                
> 2           0.141         0.0705
> | org-get-entries-from-diary                                     
> 5           0.126         0.0252
> | org-agenda-get-deadlines                                       
> 10          0.107         0.0107
> | org-agenda-get-timestamps                                      
> 10          0.078         0.0078
> | org-outline-level                                              
> 5376        0.064         1.19...e-005
> | org-agenda-skip-if                                             
> 167         0.061         0.0003652694
> | org-agenda-skip-entry-if                                       
> 167         0.061         0.0003652694
> | org-agenda-get-blocks                                          
> 10          0.046         0.0046
> | org-check-agenda-file                                          
> 14          0.032         0.0022857142
> | org-get-todo-state                                             
> 333         0.031         9.30...e-005
> | org-finalize-agenda                                            
> 3           0.016         0.0053333333
> | org-time-string-to-absolute                                    
> 1627        0.016         9.83...e-006
> | org-agenda-get-sexps                                           
> 10          0.016         0.0016
> | org-at-date-range-p                                            
> 217         0.016         7.37...e-005
> | org-agenda-align-tags                                          
> 1           0.016         0.016
> | org-let                                                        
> 1           0.016         0.016
> | org-agenda-files                                               
> 4           0.015         0.00375
> | org-agenda-skip                                                
> 3213        0.015         4.66...e-006
> | org-on-heading-p                                               
> 164         0.015         9.14...e-005
> | org-agenda-set-mode-name                                       
> 1           0.0           0.0
> | org-date-to-gregorian                                          
> 474         0.0           0.0
> | org-delete-overlay                                             
> 65          0.0           0.0
> | org-agenda-reset-markers                                       
> 1           0.0           0.0
> | org-find-base-buffer-visiting                                  
> 14          0.0           0.0
> | org-set-sorting-strategy                                       
> 2           0.0           0.0
> | org-get-effort                                                 
> 69          0.0           0.0
> | org-downcase-keep-props                                        
> 41          0.0           0.0
> | org-get-agenda-file-buffer                                     
> 14          0.0           0.0
> | org-fit-agenda-window                                          
> 1           0.0           0.0
> | org-agenda-check-for-timestamp-as-reason-to-ignore-todo-item   
> 189         0.0           0.0
> | org-entry-get                                                  
> 69          0.0           0.0
> | org-agenda-post-command-hook                                   
> 2           0.0           0.0
> | org-overlay-get                                                
> 241         0.0           0.0
> | org-agenda-cleanup-fancy-diary                                 
> 5           0.0           0.0
> | org-get-wdays                                                  
> 150         0.0           0.0
> | org-parse-time-string                                          
> 1797        0.0           0.0
> | org-entries-lessp                                              
> 215         0.0           0.0
> | org-trim                                                       
> 29          0.0           0.0
> | org-closest-date                                               
> 237         0.0           0.0
> | org-agenda-add-inherited-tags                                  
> 72          0.0           0.0
> | org-modify-diary-entry-string                                  
> 5           0.0           0.0
> | org-make-overlay                                               
> 65          0.0           0.0
> | org-file-menu-entry                                            
> 2           0.0           0.0
> | org-add-to-diary-list                                          
> 5           0.0           0.0
> | org-split-string                                               
> 39          0.0           0.0
> | org-activate-bracket-links                                     
> 1           0.0           0.0
> | org-add-props                                                  
> 186         0.0           0.0
> | org-agenda-add-time-grid-maybe                                 
> 3           0.0           0.0
> | org-get-category                                               
> 69          0.0           0.0
> | org-days-to-iso-week                                           
> 3           0.0           0.0
> | org-agenda-mode                                                
> 1           0.0           0.0
> | org-uniquify                                                   
> 4           0.0           0.0
> | org-agenda-new-marker                                          
> 107         0.0           0.0
> | org-agenda-todayp                                              
> 20          0.0           0.0
> | org-format-agenda-item                                         
> 72          0.0           0.0
> | org-overlays-in                                                
> 1           0.0           0.0
> | org-get-property-block                                         
> 69          0.0           0.0
> | org-fontify-priorities                                         
> 1           0.0           0.0
> | org-get-tags-at                                                
> 69          0.0           0.0
> | org-overlay-put                                                
> 130         0.0           0.0
> | org-get-todo-face                                              
> 68          0.0           0.0
> | org-compile-prefix-format                                      
> 2           0.0           0.0
> | org-agenda-highlight-todo                                      
> 72          0.0           0.0
> | org-agenda-ndays-to-span                                       
> 1           0.0           0.0
> | org-agenda-deadline-face                                       
> 4           0.0           0.0
> | org-add-hook                                                   
> 2           0.0           0.0
> | org-time-string-to-time                                        
> 170         0.0           0.0
> | org-agenda-fontify-priorities                                  
> 1           0.0           0.0
> | org-agenda-format-date-aligned                                 
> 3           0.0           0.0
> | org-diary-default-entry                                        
> 5           0.0           0.0
> | org-font-lock-add-tag-faces                                    
> 1           0.0           0.0
> | org-get-priority                                               
> 69          0.0           0.0
> | org-remove-uniherited-tags                                     
> 69          0.0           0.0
> | org-get-time-of-day                                            
> 37          0.0           0.0
> | org-finalize-agenda-entries                                    
> 4           0.0           0.0
> | org-unhighlight                                                
> 2           0.0           0.0
> | org-before-change-function                                     
> 199         0.0           0.0
> `----
>
> my org file is about 15000 lines large.
>
>
> Rainer
>
>
> Carsten Dominik schrieb:
>>
>> On Apr 24, 2009, at 10:24 AM, Eric S Fraga wrote:
>>
>>> Carsten Dominik writes:
>>>> On Apr 24, 2009, at 12:10 AM, Eric S Fraga wrote:
>>>>> Which part can you not reproduce?
>>>>
>>>> When I have the agenda on an arbitrary date, pressing "j" does  
>>>> *not*
>>>> first switch the agenda to today.
>>>
>>> <blush>
>>>
>>> Okay, the problem was mine: I had included a very useful method,
>>> originally from Tassilo (cf. th-calendar-open-agenda), which would
>>> have the agenda view updated when the calendar view changed.   
>>> Removing
>>> this gives the behaviour I was now looking for, and which is indeed
>>> the default behaviour.  Apologies for the noise.
>>>
>>> </blush>
>>>
>>> Actually, this experience is a testament to the insidious nature  
>>> (in a
>>> positive way) of org-mode: it is taking over my life!  I used to  
>>> have
>>> the Emacs diary + calendar as the focus of my attention for task and
>>> time management and org-mode was initially an addition to this.
>>> org-mode is now almost completely the focus and I really need to  
>>> clean
>>> up my customisations to remove the old vestiges of how I used to  
>>> work.
>>>
>>> Again, apologies and continued thanks for an excellent system  
>>> which I
>>> could no longer live without!
>>
>> I still would like to to see profiling information as I described  
>> in my
>> message from yesterday, so see if specific operations are  
>> particularly
>> slow on netbooks or a zaurus.
>>
>> - Carsten
>>
>>
>>
>>
>> _______________________________________________
>> Emacs-orgmode mailing list
>> Remember: use `Reply All' to send replies to the list.
>> Emacs-orgmode@gnu.org
>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>>
>

^ permalink raw reply	[flat|nested] 41+ messages in thread

* Re: org-mode on sloooow computer
  2009-04-24 11:35           ` Carsten Dominik
  2009-04-24 12:51             ` Matthew Lundin
@ 2009-04-24 15:27             ` Leo
  2009-04-24 15:57               ` Nick Dokos
  1 sibling, 1 reply; 41+ messages in thread
From: Leo @ 2009-04-24 15:27 UTC (permalink / raw)
  To: emacs-orgmode

On 2009-04-24 12:35 +0100, Carsten Dominik wrote:
> With some more improvements (available now) this should get down to
> 1.5 seconds. Not perfect, but almost a factor of three from the
> original 4.35 seconds.

I have to ditch org 6.21b now for the performance gained.

What's really annoying is that I can on longer use the following to
compile .el files. I am using GNU Emacs 23.0.92.1
(i386-apple-darwin9.6.0, NS apple-appkit-949.43) of 2009-04-22 on
neutron.local.

,----[ .bash_profile ]
| alias bbc='/Applications/Emacs.app/Contents/MacOS/Emacs -batch -q -no-site-file -f byte-compile-file'
`----

Any one got a fix?

When I run 'bbc somefile.el', it does not take the file I supply and
still ask me 'Byte compile file: '.

> Please, everybody watch out for strange behavior in the agenda, to
> make sure I have not messed up anything while doing the optimization.
>
> We should to profiling more often, this can apparently make a big
> difference.....

-- 
.: Leo :. [ sdl.web AT gmail.com ] .: I use Emacs :.

^ permalink raw reply	[flat|nested] 41+ messages in thread

* Re: org-mode on sloooow computer
  2009-04-24 13:49             ` Carsten Dominik
@ 2009-04-24 15:47               ` Eric S Fraga, Eric S Fraga
  2009-04-24 18:25                 ` Carsten Dominik
  0 siblings, 1 reply; 41+ messages in thread
From: Eric S Fraga, Eric S Fraga @ 2009-04-24 15:47 UTC (permalink / raw)
  To: Carsten Dominik; +Cc: emacs-orgmode, Rainer Stengele

Carsten Dominik writes:
> On Apr 24, 2009, at 3:37 PM, Rainer Stengele wrote:
> 
> > Hi Carsten,
> >
> > strange enough the latest git version does not improve time for my  
> > agenda at all.
> > It still is as slow or fast - however you see it.
> 
> I think you have tag inheritance turned off, or you have everything in  
> top-level entries.
> 
>  From todays adjustments, the people who will benefit the most are  
> those who have a very large number of siblings on arbitrary levels,  
> and who, at the same time, use tag inheritance.

Carsten,

I definitely fall into the tag inheritance with large number of
siblings on arbitrary levels category!  FYI, here is another data
point for analysis.  I've downloaded the latest git version:

  commit 4b6f0cf77b941bdaf7d784215d1977f7ea58f550
  Author: Carsten Dominik <carsten.dominik@gmail.com>
  Date:   Fri Apr 24 16:45:01 2009 +0200

    Optimization: Make org-end-of-subtree much faster

and these are the first few lines of the profiling information (I can
send all output if you wish) which show another further significant
improvement!  This is fantastic.

org-agenda                             1           1.354913      1.354913
org-agenda-list                        1           1.082066      1.082066
org-dblock-write:clocktable            7           0.541785      0.0773978571
org-agenda-get-day-entries             6           0.430589      0.0717648333
org-get-clocktable                     1           0.384531      0.384531
org-update-dblock                      1           0.349331      0.349331
org-prepare-agenda-buffers             2           0.340886      0.170443
org-agenda-get-scheduled               6           0.289391      0.0482318333
org-agenda-get-restriction-and-command 1           0.272534      0.272534
org-get-tags-at                        8           0.2238899999  0.0279862499
org-up-heading-all                     21          0.2201879999  0.0104851428
...

Thanks again,
eric 

^ permalink raw reply	[flat|nested] 41+ messages in thread

* Re: Re: org-mode on sloooow computer
  2009-04-24 15:27             ` Leo
@ 2009-04-24 15:57               ` Nick Dokos
  2009-04-24 16:22                 ` Leo
  0 siblings, 1 reply; 41+ messages in thread
From: Nick Dokos @ 2009-04-24 15:57 UTC (permalink / raw)
  To: Leo; +Cc: emacs-orgmode

Leo <sdl.web@gmail.com> wrote:

> What's really annoying is that I can on longer use the following to
> compile .el files. I am using GNU Emacs 23.0.92.1
> (i386-apple-darwin9.6.0, NS apple-appkit-949.43) of 2009-04-22 on
> neutron.local.
> 
> ,----[ .bash_profile ]
> | alias bbc='/Applications/Emacs.app/Contents/MacOS/Emacs -batch -q -no-site-file -f byte-compile-file'
> `----
> 
> Any one got a fix?
> 

Does replacing 'byte-compile-file' with 'batch-byte-compile'
make any difference?

Nick

^ permalink raw reply	[flat|nested] 41+ messages in thread

* Re: org-mode on sloooow computer
  2009-04-24 15:57               ` Nick Dokos
@ 2009-04-24 16:22                 ` Leo
  0 siblings, 0 replies; 41+ messages in thread
From: Leo @ 2009-04-24 16:22 UTC (permalink / raw)
  To: emacs-orgmode

On 2009-04-24 16:57 +0100, Nick Dokos wrote:
>> Any one got a fix?
>> 
>
> Does replacing 'byte-compile-file' with 'batch-byte-compile'
> make any difference?
>
> Nick

Thanks, Nick. It turned out that was a typo when I manually copied this
from my old setup.

Cheers,
-- 
.: Leo :. [ sdl.web AT gmail.com ] .: I use Emacs :.

^ permalink raw reply	[flat|nested] 41+ messages in thread

* Re: org-mode on sloooow computer
  2009-04-24 15:47               ` Eric S Fraga, Eric S Fraga
@ 2009-04-24 18:25                 ` Carsten Dominik
  2009-04-24 22:26                   ` Eric S Fraga, Eric S Fraga
  0 siblings, 1 reply; 41+ messages in thread
From: Carsten Dominik @ 2009-04-24 18:25 UTC (permalink / raw)
  To: e.fraga; +Cc: emacs-orgmode, Rainer Stengele


On Apr 24, 2009, at 5:47 PM, Eric S Fraga wrote:

> Carsten Dominik writes:
>> On Apr 24, 2009, at 3:37 PM, Rainer Stengele wrote:
>>
>>> Hi Carsten,
>>>
>>> strange enough the latest git version does not improve time for my
>>> agenda at all.
>>> It still is as slow or fast - however you see it.
>>
>> I think you have tag inheritance turned off, or you have everything  
>> in
>> top-level entries.
>>
>> From todays adjustments, the people who will benefit the most are
>> those who have a very large number of siblings on arbitrary levels,
>> and who, at the same time, use tag inheritance.
>
> Carsten,
>
> I definitely fall into the tag inheritance with large number of
> siblings on arbitrary levels category!  FYI, here is another data
> point for analysis.  I've downloaded the latest git version:
>
>  commit 4b6f0cf77b941bdaf7d784215d1977f7ea58f550
>  Author: Carsten Dominik <carsten.dominik@gmail.com>
>  Date:   Fri Apr 24 16:45:01 2009 +0200
>
>    Optimization: Make org-end-of-subtree much faster
>
> and these are the first few lines of the profiling information (I can
> send all output if you wish) which show another further significant
> improvement!  This is fantastic.

Hi Eric,

if you want to hunt for more improvements, looking at
this table, much can be gained by turning off the
clocktable in the agenda and only turning it on
interactively with "R" when you really need it.

Hmmm, `org-up-heading-all' still gets called, this should no longer  
happen.
I wonder why, when.

If you want to help:

1. reload uncompiled-code:

    C-u C-c C-x r

2. Arm the function

   M-x debug-on-entry RET org-up-heading-all RET

3. TUrn on debugging on error (needed, but hard to explain here)

   You can best do this from the "Options" menu, "Enter Debugger on  
Error"

4. Produce your agenda.  You will get a backtrace buffer, which I  
would like to see...

Thanks.

- Carsten

>
> org-agenda                             1           1.354913       
> 1.354913
> org-agenda-list                        1           1.082066       
> 1.082066
> org-dblock-write:clocktable            7           0.541785       
> 0.0773978571
> org-agenda-get-day-entries             6           0.430589       
> 0.0717648333
> org-get-clocktable                     1           0.384531       
> 0.384531
> org-update-dblock                      1           0.349331       
> 0.349331
> org-prepare-agenda-buffers             2           0.340886       
> 0.170443
> org-agenda-get-scheduled               6           0.289391       
> 0.0482318333
> org-agenda-get-restriction-and-command 1           0.272534       
> 0.272534
> org-get-tags-at                        8           0.2238899999   
> 0.0279862499
> org-up-heading-all                     21          0.2201879999   
> 0.0104851428
> ...
>
> Thanks again,
> eric

^ permalink raw reply	[flat|nested] 41+ messages in thread

* Re: org-mode on sloooow computer
  2009-04-24 18:25                 ` Carsten Dominik
@ 2009-04-24 22:26                   ` Eric S Fraga, Eric S Fraga
  2009-04-25  3:51                     ` Carsten Dominik
  0 siblings, 1 reply; 41+ messages in thread
From: Eric S Fraga, Eric S Fraga @ 2009-04-24 22:26 UTC (permalink / raw)
  To: Carsten Dominik; +Cc: emacs-orgmode, Rainer Stengele

Carsten Dominik writes:
> Hmmm, `org-up-heading-all' still gets called, this should no longer  
> happen.
> I wonder why, when.

There must have been an error in recompilation after pulling the
updates with git.  Although I asked emacs to recompile the directory,
it must have done something strange.  I've cleared out the elc files
and compiled the whole directory and this is what I get now (which
indicates yet another improvement!):

org-agenda                             1           1.114424      1.114424
org-agenda-list                        1           0.889913      0.889913
org-dblock-write:clocktable            7           0.586827      0.0838324285
org-get-clocktable                     1           0.427968      0.427968
org-update-dblock                      1           0.3902330000  0.3902330000
org-prepare-agenda-buffers             2           0.267907      0.1339535
org-agenda-get-day-entries             6           0.255334      0.0425556666
org-agenda-get-restriction-and-command 1           0.224329      0.224329
org-clock-sum                          6           0.195653      0.0326088333
org-agenda-get-scheduled               6           0.145536      0.024256
org-prepare-agenda                     1           0.128176      0.128176
org-refresh-category-properties        12          0.0830839999  0.0069236666
org-get-tags-at                        8           0.059022      0.00737775
org-up-heading-safe                    21          0.0560520000  0.0026691428
org-get-entries-from-diary             1           0.042899      0.042899
...

> If you want to help:
> 
> 1. reload uncompiled-code:
> 
>     C-u C-c C-x r

Ummm, this doesn't work for me?  C-c C-x r is undefined.

> 2. Arm the function
> 
>    M-x debug-on-entry RET org-up-heading-all RET
> 
> 3. TUrn on debugging on error (needed, but hard to explain here)
> 
>    You can best do this from the "Options" menu, "Enter Debugger on  
> Error"
> 
> 4. Produce your agenda.  You will get a backtrace buffer, which I  
> would like to see...

I don't get a backtrace buffer, which I guess now makes sense since
org-up-heading-all doesn't seem to get invoked any more.

> if you want to hunt for more improvements, looking at
> this table, much can be gained by turning off the
> clocktable in the agenda and only turning it on
> interactively with "R" when you really need it.

Yep, this helps as well:

org-agenda                             1           0.963539      0.963539
org-agenda-list                        1           0.739349      0.739349
org-finalize-agenda-entries            1           0.286326      0.286326
org-agenda-highlight-todo              8           0.282616      0.035327
org-agenda-get-day-entries             6           0.2574450000  0.0429075000
org-agenda-get-restriction-and-command 1           0.224016      0.224016
org-agenda-get-scheduled               6           0.147105      0.0245175
org-prepare-agenda                     1           0.1283210000  0.1283210000
org-prepare-agenda-buffers             1           0.1202870000  0.1202870000
org-get-tags-at                        8           0.059197      0.007399625
org-up-heading-safe                    21          0.056139      0.0026732857
org-get-entries-from-diary             1           0.043058      0.043058
...

However, I may actually leave the clock display on by default as it
has a psychological effect that is worthwhile for my working
practices; but at least I know that turning it off might be worthwhile
on the Asus.

In any case, I am impressed: from 4.5 seconds to less than a second in
one day!  Can you do the same for my 2+ day optimisation runs I
require in my research? ;-)

Thanks yet again,
eric 

^ permalink raw reply	[flat|nested] 41+ messages in thread

* Re: org-mode on sloooow computer
  2009-04-24 22:26                   ` Eric S Fraga, Eric S Fraga
@ 2009-04-25  3:51                     ` Carsten Dominik
  2009-04-25  8:19                       ` Eric S Fraga, Eric S Fraga
  0 siblings, 1 reply; 41+ messages in thread
From: Carsten Dominik @ 2009-04-25  3:51 UTC (permalink / raw)
  To: e.fraga; +Cc: emacs-orgmode, Rainer Stengele


On Apr 25, 2009, at 12:26 AM, Eric S Fraga wrote:

> Carsten Dominik writes:
>> Hmmm, `org-up-heading-all' still gets called, this should no longer
>> happen.
>> I wonder why, when.
>
> There must have been an error in recompilation after pulling the
> updates with git.  Although I asked emacs to recompile the directory,
> it must have done something strange.  I've cleared out the elc files
> and compiled the whole directory and this is what I get now (which
> indicates yet another improvement!):
>
> org-agenda                             1           1.114424       
> 1.114424
> org-agenda-list                        1           0.889913       
> 0.889913
> org-dblock-write:clocktable            7           0.586827       
> 0.0838324285
> org-get-clocktable                     1           0.427968       
> 0.427968
> org-update-dblock                      1           0.3902330000   
> 0.3902330000
> org-prepare-agenda-buffers             2           0.267907       
> 0.1339535
> org-agenda-get-day-entries             6           0.255334       
> 0.0425556666
> org-agenda-get-restriction-and-command 1           0.224329       
> 0.224329
> org-clock-sum                          6           0.195653       
> 0.0326088333
> org-agenda-get-scheduled               6           0.145536       
> 0.024256
> org-prepare-agenda                     1           0.128176       
> 0.128176
> org-refresh-category-properties        12          0.0830839999   
> 0.0069236666
> org-get-tags-at                        8           0.059022       
> 0.00737775
> org-up-heading-safe                    21          0.0560520000   
> 0.0026691428
> org-get-entries-from-diary             1           0.042899       
> 0.042899
> ...
>
>> If you want to help:
>>
>> 1. reload uncompiled-code:
>>
>>    C-u C-c C-x r
>
> Ummm, this doesn't work for me?  C-c C-x r is undefined.

You need to be in an org-mode buffer for this..

>
>> 2. Arm the function
>>
>>   M-x debug-on-entry RET org-up-heading-all RET
>>
>> 3. TUrn on debugging on error (needed, but hard to explain here)
>>
>>   You can best do this from the "Options" menu, "Enter Debugger on
>> Error"
>>
>> 4. Produce your agenda.  You will get a backtrace buffer, which I
>> would like to see...
>
> I don't get a backtrace buffer, which I guess now makes sense since
> org-up-heading-all doesn't seem to get invoked any more.

yes..

>
>> if you want to hunt for more improvements, looking at
>> this table, much can be gained by turning off the
>> clocktable in the agenda and only turning it on
>> interactively with "R" when you really need it.
>
> Yep, this helps as well:
>
> org-agenda                             1           0.963539       
> 0.963539
> org-agenda-list                        1           0.739349       
> 0.739349
> org-finalize-agenda-entries            1           0.286326       
> 0.286326
> org-agenda-highlight-todo              8           0.282616       
> 0.035327
> org-agenda-get-day-entries             6           0.2574450000   
> 0.0429075000
> org-agenda-get-restriction-and-command 1           0.224016       
> 0.224016
> org-agenda-get-scheduled               6           0.147105       
> 0.0245175
> org-prepare-agenda                     1           0.1283210000   
> 0.1283210000
> org-prepare-agenda-buffers             1           0.1202870000   
> 0.1202870000
> org-get-tags-at                        8           0.059197       
> 0.007399625
> org-up-heading-safe                    21          0.056139       
> 0.0026732857
> org-get-entries-from-diary             1           0.043058       
> 0.043058
> ...
>
> However, I may actually leave the clock display on by default as it
> has a psychological effect that is worthwhile for my working
> practices; but at least I know that turning it off might be worthwhile
> on the Asus.

Of course, this i what I meant.

>
> In any case, I am impressed: from 4.5 seconds to less than a second in
> one day!  Can you do the same for my 2+ day optimisation runs I
> require in my research? ;-)

:-)  Someone needs to write a profiler for that.  In fact, clocking your
work and looking at the biggest time consumers may help :-)

Thanks, this was a fun day.


- Carsten

^ permalink raw reply	[flat|nested] 41+ messages in thread

* Re: org-mode on sloooow computer
  2009-04-23 20:30   ` Carsten Dominik
  2009-04-24  9:22     ` Eric S Fraga
@ 2009-04-25  4:06     ` Samuel Wales
  1 sibling, 0 replies; 41+ messages in thread
From: Samuel Wales @ 2009-04-25  4:06 UTC (permalink / raw)
  To: Carsten Dominik; +Cc: emacs-orgmode

This is running org-agenda on a 1GHz Mac.  I will post again with a
larger set of agenda files.  I have a few operations that are 11
seconds or so, but I can maybe speed them up by combining searches
into one (not sure if that will work).

Function Name                                                 Call
Count  Elapsed Time  Average Time
============================================================
==========  ============  ============
org-agenda                                                    1
   4.473791      4.473791
org-agenda-get-restriction-and-command                        1
   3.318245      3.318245
org-agenda-list                                               1
   1.15528       1.15528
org-agenda-get-day-entries                                    28
   0.8364020000  0.0298715000
org-agenda-get-timestamps                                     28
   0.3637680000  0.0129917142
org-up-heading-safe                                           160
   0.3499159999  0.002186975
org-get-tags-at                                               26
   0.3496280000  0.0134472307
org-prepare-agenda                                            1
   0.254526      0.254526
org-prepare-agenda-buffers                                    1
   0.248059      0.248059
org-agenda-get-scheduled                                      28
   0.2099999999  0.0074999999
org-refresh-category-properties                               4
   0.181482      0.0453705
org-agenda-get-deadlines                                      28
   0.1161339999  0.0041476428
org-time-string-to-absolute                                   385
   0.0572579999  0.0001487220
org-agenda-get-sexps                                          28
   0.0535290000  0.0019117500
org-agenda-get-blocks                                         28
   0.0528180000  0.0018863571
org-finalize-agenda                                           1
   0.027553      0.027553
org-get-agenda-file-buffer                                    32
   0.0246869999  0.0007714687
org-find-base-buffer-visiting                                 32
   0.024321      0.0007600312
org-agenda-dim-blocked-tasks                                  1
   0.021669      0.021669
org-end-of-subtree                                            9
   0.019045      0.0021161111
org-format-agenda-item                                        28
   0.018972      0.0006775714
org-parse-time-string                                         399
   0.0150879999  3.781...e-05
org-block-todo-from-children-or-siblings-or-parent            26
   0.014839      0.0005707307
org-closest-date                                              133
   0.0143009999  0.0001075263
org-finalize-agenda-entries                                   7
   0.012161      0.0017372857
org-entry-get                                                 84
   0.011275      0.0001342261
org-back-to-heading                                           385
   0.0105189999  2.732...e-05
org-get-property-block                                        84
   0.009824      0.0001169523
org-at-date-range-p                                           177
   0.0091099999  5.146...e-05
org-agenda-skip                                               534
   0.0090339999  1.691...e-05
org-check-agenda-file                                         32
   0.007903      0.0002469687
org-date-to-gregorian                                         266
   0.0073650000  2.768...e-05
org-get-todo-state                                            45
   0.0059620000  0.0001324888
org-agenda-mode                                               1
   0.005456      0.005456
org-agenda-highlight-todo                                     28
   0.0052780000  0.0001885000
org-get-effort                                                26
   0.0044469999  0.0001710384
org-get-priority                                              26
   0.003813      0.0001466538
org-agenda-align-tags                                         1
   0.003731      0.003731
org-add-props                                                 91
   0.0035829999  3.937...e-05
org-outline-level                                             357
   0.0033429999  9.364...e-06
org-agenda-todayp                                             56
   0.0029660000  5.296...e-05
org-fit-window-to-buffer                                      1
   0.00257       0.00257
org-agenda-files                                              3
   0.002198      0.0007326666
org-agenda-add-inherited-tags                                 28
   0.0019330000  6.903...e-05
org-get-time-of-day                                           33
   0.001796      5.442...e-05
org-agenda-fontify-priorities                                 1
   0.001709      0.001709
org-entries-lessp                                             47
   0.0017020000  3.621...e-05
org-time-string-to-time                                       14
   0.0015799999  0.0001128571
org-get-wdays                                                 126
   0.0007649999  6.071...e-06
org-agenda-new-marker                                         52
   0.0006660000  1.280...e-05
org-font-lock-add-tag-faces                                   1
   0.00065       0.00065
org-uniquify                                                  4
   0.000583      0.00014575
org-agenda-add-time-grid-maybe                                7
   0.0005680000  8.114...e-05
org-remove-uniherited-tags                                    30
   0.0005209999  1.736...e-05
org-trim                                                      9
   0.00038       4.222...e-05
org-overlays-in                                               2
   0.000346      0.000173
org-time-from-absolute                                        7
   0.000321      4.585...e-05
org-activate-bracket-links                                    2
   0.000316      0.000158
org-switch-to-buffer-other-window                             1
   0.000294      0.000294
org-split-string                                              16
   0.0002139999  1.337...e-05
org-overlay-put                                               22
   0.0001339999  6.090...e-06
org-compile-prefix-format                                     1
   0.00013       0.00013
org-make-overlay                                              11
   0.000128      1.163...e-05
org-before-change-function                                    17
   0.0001270000  7.470...e-06
org-get-tag-face                                              10
   0.000108      1.08e-05
org-entry-is-done-p                                           2
   0.000105      5.25e-05
org-days-to-iso-week                                          2
   9.8e-05       4.9e-05
org-get-category                                              26
   9.600...e-05  3.692...e-06
org-add-hook                                                  2
   9.5e-05       4.75e-05
org-unhighlight                                               1
   8.2e-05       8.2e-05
org-region-active-p                                           1
   7.7e-05       7.7e-05
org-downcase-keep-props                                       17
   7.400...e-05  4.352...e-06
org-entry-is-todo-p                                           2
   6.8e-05       3.4e-05
org-overlay-get                                               11
   5.999...e-05  5.454...e-06
org-get-todo-face                                             12
   4.600...e-05  3.833...e-06
org-file-menu-entry                                           4
   3.5e-05       8.75e-06
org-add-prop-inherited                                        5
   2.3e-05       4.6e-06
org-agenda-set-mode-name                                      1
   2.2e-05       2.2e-05
org-agenda-deadline-face                                      3
   1.999...e-05  6.666...e-06
org-agenda-post-command-hook                                  1
   9e-06         9e-06
org-agenda-ndays-to-span                                      2
   6e-06         3e-06
org-fit-agenda-window                                         1
   4e-06         4e-06
org-agenda-reset-markers                                      1
   3e-06         3e-06
org-set-sorting-strategy                                      1
   3e-06         3e-06

^ permalink raw reply	[flat|nested] 41+ messages in thread

* Re: org-mode on sloooow computer
  2009-04-25  3:51                     ` Carsten Dominik
@ 2009-04-25  8:19                       ` Eric S Fraga, Eric S Fraga
  2009-04-25 16:25                         ` Bernt Hansen
  0 siblings, 1 reply; 41+ messages in thread
From: Eric S Fraga, Eric S Fraga @ 2009-04-25  8:19 UTC (permalink / raw)
  To: Carsten Dominik; +Cc: emacs-orgmode

Carsten Dominik writes:
> > Ummm, this doesn't work for me?  C-c C-x r is undefined.
> 
> You need to be in an org-mode buffer for this..

Ah.  Yes.

> > In any case, I am impressed: from 4.5 seconds to less than a second in
> > one day!  Can you do the same for my 2+ day optimisation runs I
> > require in my research? ;-)
> 
> :-)  Someone needs to write a profiler for that.  In fact, clocking your
> work and looking at the biggest time consumers may help :-)

Yes.  I do profile my codes very often.  The current codes (for this
particular problem) are about as efficient as I can make them.  The
problems I tackle are simply inherently difficult or complex.

> Thanks, this was a fun day.

Excellent!  A bit of hacking of this type can indeed be fun.  And
provides a nice diversion from the more humdrum aspects of our
work... (my students are all revising for their final exams... ;-).

eric 

^ permalink raw reply	[flat|nested] 41+ messages in thread

* Re: org-mode on sloooow computer
  2009-04-25  8:19                       ` Eric S Fraga, Eric S Fraga
@ 2009-04-25 16:25                         ` Bernt Hansen
  2009-04-30 14:13                           ` Carsten Dominik
  0 siblings, 1 reply; 41+ messages in thread
From: Bernt Hansen @ 2009-04-25 16:25 UTC (permalink / raw)
  To: e.fraga; +Cc: emacs-orgmode

Eric S Fraga <ucecesf@ucl.ac.uk> writes:

> Carsten Dominik writes:
>> > Ummm, this doesn't work for me?  C-c C-x r is undefined.
>> 
>> You need to be in an org-mode buffer for this..
>
> Ah.  Yes.
>

I just use M-x org-reload and C-u M-x org-reload since that works
everywhere.

C-c C-x r doesn't work in the agenda either which feels weird.

-Bernt

^ permalink raw reply	[flat|nested] 41+ messages in thread

* Re: org-mode on sloooow computer
  2009-04-24 14:47             ` Carsten Dominik
@ 2009-04-28 10:33               ` Rainer Stengele
  2009-04-30 14:14                 ` Carsten Dominik
  0 siblings, 1 reply; 41+ messages in thread
From: Rainer Stengele @ 2009-04-28 10:33 UTC (permalink / raw)
  To: Carsten Dominik; +Cc: emacs-orgmode, e.fraga

Carsten Dominik schrieb:
> I have just pushed one more optimization which may improve things a bit
> for you, Rainer.
> 
> - Carsten
> ...


Hi Carsten,

results see here:


before your last optimsation:

org-run-agenda-series                                         1           1.797         1.797

after your optimisation (see below):

org-run-agenda-series                                         1           1.703         1.703
org-agenda                                                    1           1.703         1.703
org-let2                                                      2           1.3900000000  0.6950000000
org-agenda-list                                               1           1.2810000000  1.2810000000
org-agenda-get-day-entries                                    12          1.202         0.1001666666
org-agenda-get-scheduled                                      10          0.7969999999  0.0797
org-end-of-subtree                                            1533        0.4400000000  0.0002870189
org-time-string-to-absolute                                   1635        0.2360000000  0.0001443425
org-prepare-agenda                                            3           0.2189999999  0.073
org-prepare-agenda-buffers                                    1           0.2029999999  0.2029999999
org-parse-time-string                                         1805        0.188         0.0001041551
org-agenda-get-timestamps                                     10          0.14          0.0140000000
org-todo-list                                                 1           0.109         0.109
org-agenda-get-deadlines                                      10          0.094         0.0094
org-closest-date                                              240         0.094         0.0003916666
org-back-to-heading                                           2206        0.094         4.26...e-005
org-finalize-agenda                                           3           0.094         0.0313333333
org-let                                                       1           0.094         0.094
org-outline-level                                             1533        0.094         6.13...e-005
org-agenda-get-todos                                          2           0.093         0.0465
org-date-to-gregorian                                         480         0.078         0.0001625
org-agenda-fontify-priorities                                 1           0.078         0.078
org-get-entries-from-diary                                    5           0.063         0.0126
org-agenda-skip                                               3220        0.063         1.95...e-005
org-agenda-skip-if                                            167         0.063         0.0003772455
org-agenda-skip-entry-if                                      167         0.063         0.0003772455
org-refresh-category-properties                               2           0.0470000000  0.0235000000
org-get-todo-state                                            335         0.047         0.0001402985
org-agenda-get-blocks                                         10          0.046         0.0046
org-agenda-files                                              4           0.032         0.008
org-get-effort                                                72          0.031         0.0004305555
org-entry-get                                                 72          0.031         0.0004305555
org-format-agenda-item                                        74          0.031         0.0004189189
org-at-date-range-p                                           219         0.031         0.0001415525
org-get-wdays                                                 150         0.016         0.0001066666
org-entries-lessp                                             219         0.016         7.30...e-005
org-agenda-get-sexps                                          10          0.016         0.0016
org-agenda-align-tags                                         1           0.016         0.016
org-finalize-agenda-entries                                   5           0.016         0.0032
org-check-agenda-file                                         14          0.015         0.0010714285
org-get-property-block                                        72          0.015         0.0002083333



So it looks like I have come from 1.797 down to 1.703.
And by the way - the times are even now varying between
org-run-agenda-series                                         1           1.563         1.563
and little over 2 seconds.


Will I see much improvement when archiving a lot of subtrees inside the org file?


Thanks so much for this special "Rainer" optimisation ;)
I also dream of always carrying around a small netbook running mainly emacs with org-mode ...


Rainer


> On Apr 24, 2009, at 3:37 PM, Rainer Stengele wrote:
> 
>> Hi Carsten,
>>
>> strange enough the latest git version does not improve time for my
>> agenda at all.
>> It still is as slow or fast - however you see it.
>>
>> org-version is 6.26trans
>>
>> ,----
>> | org-run-agenda-series                                        
>> 1           1.797         1.797
>> | org-agenda                                                   
>> 1           1.797         1.797
>> | org-let2                                                     
>> 2           1.422         0.711
>> | org-agenda-get-day-entries                                   
>> 12          1.248         0.104
>> | org-agenda-list                                              
>> 1           1.2349999999  1.2349999999
>> | org-agenda-get-scheduled                                     
>> 10          0.7979999999  0.0798
>> | org-end-of-subtree                                           
>> 1533        0.6430000000  0.0004194390
>> | org-prepare-agenda                                           
>> 3           0.359         0.1196666666
>> | org-prepare-agenda-buffers                                   
>> 1           0.25          0.25
>> | org-back-to-heading                                          
>> 2198        0.1880000000  8.55...e-005
>> | org-todo-list                                                
>> 1           0.187         0.187
>> | org-agenda-get-todos                                         
>> 2           0.171         0.0855
>> | org-refresh-category-properties                              
>> 2           0.141         0.0705
>> | org-get-entries-from-diary                                   
>> 5           0.126         0.0252
>> | org-agenda-get-deadlines                                     
>> 10          0.107         0.0107
>> | org-agenda-get-timestamps                                    
>> 10          0.078         0.0078
>> | org-outline-level                                            
>> 5376        0.064         1.19...e-005
>> | org-agenda-skip-if                                           
>> 167         0.061         0.0003652694
>> | org-agenda-skip-entry-if                                     
>> 167         0.061         0.0003652694
>> | org-agenda-get-blocks                                        
>> 10          0.046         0.0046
>> | org-check-agenda-file                                        
>> 14          0.032         0.0022857142
>> | org-get-todo-state                                           
>> 333         0.031         9.30...e-005
>> | org-finalize-agenda                                          
>> 3           0.016         0.0053333333
>> | org-time-string-to-absolute                                  
>> 1627        0.016         9.83...e-006
>> | org-agenda-get-sexps                                         
>> 10          0.016         0.0016
>> | org-at-date-range-p                                          
>> 217         0.016         7.37...e-005
>> | org-agenda-align-tags                                        
>> 1           0.016         0.016
>> | org-let                                                      
>> 1           0.016         0.016
>> | org-agenda-files                                             
>> 4           0.015         0.00375
>> | org-agenda-skip                                              
>> 3213        0.015         4.66...e-006
>> | org-on-heading-p                                             
>> 164         0.015         9.14...e-005
>> | org-agenda-set-mode-name                                     
>> 1           0.0           0.0
>> | org-date-to-gregorian                                        
>> 474         0.0           0.0
>> | org-delete-overlay                                           
>> 65          0.0           0.0
>> | org-agenda-reset-markers                                     
>> 1           0.0           0.0
>> | org-find-base-buffer-visiting                                
>> 14          0.0           0.0
>> | org-set-sorting-strategy                                     
>> 2           0.0           0.0
>> | org-get-effort                                               
>> 69          0.0           0.0
>> | org-downcase-keep-props                                      
>> 41          0.0           0.0
>> | org-get-agenda-file-buffer                                   
>> 14          0.0           0.0
>> | org-fit-agenda-window                                        
>> 1           0.0           0.0
>> | org-agenda-check-for-timestamp-as-reason-to-ignore-todo-item 
>> 189         0.0           0.0
>> | org-entry-get                                                
>> 69          0.0           0.0
>> | org-agenda-post-command-hook                                 
>> 2           0.0           0.0
>> | org-overlay-get                                              
>> 241         0.0           0.0
>> | org-agenda-cleanup-fancy-diary                               
>> 5           0.0           0.0
>> | org-get-wdays                                                
>> 150         0.0           0.0
>> | org-parse-time-string                                        
>> 1797        0.0           0.0
>> | org-entries-lessp                                            
>> 215         0.0           0.0
>> | org-trim                                                     
>> 29          0.0           0.0
>> | org-closest-date                                             
>> 237         0.0           0.0
>> | org-agenda-add-inherited-tags                                
>> 72          0.0           0.0
>> | org-modify-diary-entry-string                                
>> 5           0.0           0.0
>> | org-make-overlay                                             
>> 65          0.0           0.0
>> | org-file-menu-entry                                          
>> 2           0.0           0.0
>> | org-add-to-diary-list                                        
>> 5           0.0           0.0
>> | org-split-string                                             
>> 39          0.0           0.0
>> | org-activate-bracket-links                                   
>> 1           0.0           0.0
>> | org-add-props                                                
>> 186         0.0           0.0
>> | org-agenda-add-time-grid-maybe                               
>> 3           0.0           0.0
>> | org-get-category                                             
>> 69          0.0           0.0
>> | org-days-to-iso-week                                         
>> 3           0.0           0.0
>> | org-agenda-mode                                              
>> 1           0.0           0.0
>> | org-uniquify                                                 
>> 4           0.0           0.0
>> | org-agenda-new-marker                                        
>> 107         0.0           0.0
>> | org-agenda-todayp                                            
>> 20          0.0           0.0
>> | org-format-agenda-item                                       
>> 72          0.0           0.0
>> | org-overlays-in                                              
>> 1           0.0           0.0
>> | org-get-property-block                                       
>> 69          0.0           0.0
>> | org-fontify-priorities                                       
>> 1           0.0           0.0
>> | org-get-tags-at                                              
>> 69          0.0           0.0
>> | org-overlay-put                                              
>> 130         0.0           0.0
>> | org-get-todo-face                                            
>> 68          0.0           0.0
>> | org-compile-prefix-format                                    
>> 2           0.0           0.0
>> | org-agenda-highlight-todo                                    
>> 72          0.0           0.0
>> | org-agenda-ndays-to-span                                     
>> 1           0.0           0.0
>> | org-agenda-deadline-face                                     
>> 4           0.0           0.0
>> | org-add-hook                                                 
>> 2           0.0           0.0
>> | org-time-string-to-time                                      
>> 170         0.0           0.0
>> | org-agenda-fontify-priorities                                
>> 1           0.0           0.0
>> | org-agenda-format-date-aligned                               
>> 3           0.0           0.0
>> | org-diary-default-entry                                      
>> 5           0.0           0.0
>> | org-font-lock-add-tag-faces                                  
>> 1           0.0           0.0
>> | org-get-priority                                             
>> 69          0.0           0.0
>> | org-remove-uniherited-tags                                   
>> 69          0.0           0.0
>> | org-get-time-of-day                                          
>> 37          0.0           0.0
>> | org-finalize-agenda-entries                                  
>> 4           0.0           0.0
>> | org-unhighlight                                              
>> 2           0.0           0.0
>> | org-before-change-function                                   
>> 199         0.0           0.0
>> `----
>>
>> my org file is about 15000 lines large.
>>
>>
>> Rainer
>>
>>
>> Carsten Dominik schrieb:
>>>
>>> On Apr 24, 2009, at 10:24 AM, Eric S Fraga wrote:
>>>
>>>> Carsten Dominik writes:
>>>>> On Apr 24, 2009, at 12:10 AM, Eric S Fraga wrote:
>>>>>> Which part can you not reproduce?
>>>>>
>>>>> When I have the agenda on an arbitrary date, pressing "j" does *not*
>>>>> first switch the agenda to today.
>>>>
>>>> <blush>
>>>>
>>>> Okay, the problem was mine: I had included a very useful method,
>>>> originally from Tassilo (cf. th-calendar-open-agenda), which would
>>>> have the agenda view updated when the calendar view changed.  Removing
>>>> this gives the behaviour I was now looking for, and which is indeed
>>>> the default behaviour.  Apologies for the noise.
>>>>
>>>> </blush>
>>>>
>>>> Actually, this experience is a testament to the insidious nature (in a
>>>> positive way) of org-mode: it is taking over my life!  I used to have
>>>> the Emacs diary + calendar as the focus of my attention for task and
>>>> time management and org-mode was initially an addition to this.
>>>> org-mode is now almost completely the focus and I really need to clean
>>>> up my customisations to remove the old vestiges of how I used to work.
>>>>
>>>> Again, apologies and continued thanks for an excellent system which I
>>>> could no longer live without!
>>>
>>> I still would like to to see profiling information as I described in my
>>> message from yesterday, so see if specific operations are particularly
>>> slow on netbooks or a zaurus.
>>>
>>> - Carsten
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> Emacs-orgmode mailing list
>>> Remember: use `Reply All' to send replies to the list.
>>> Emacs-orgmode@gnu.org
>>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>>>
>>
> 
> 
> 
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
> 

^ permalink raw reply	[flat|nested] 41+ messages in thread

* Re: org-mode on sloooow computer
  2009-04-25 16:25                         ` Bernt Hansen
@ 2009-04-30 14:13                           ` Carsten Dominik
  0 siblings, 0 replies; 41+ messages in thread
From: Carsten Dominik @ 2009-04-30 14:13 UTC (permalink / raw)
  To: Bernt Hansen; +Cc: emacs-orgmode, e.fraga


On Apr 25, 2009, at 6:25 PM, Bernt Hansen wrote:

> Eric S Fraga <ucecesf@ucl.ac.uk> writes:
>
>> Carsten Dominik writes:
>>>> Ummm, this doesn't work for me?  C-c C-x r is undefined.
>>>
>>> You need to be in an org-mode buffer for this..
>>
>> Ah.  Yes.
>>
>
> I just use M-x org-reload and C-u M-x org-reload since that works
> everywhere.
>
> C-c C-x r doesn't work in the agenda either which feels weird.


Hmm, I just noticed that `C-c C-x r' is one of the bindings also
used for Emacs in a terminal, to replace `M-right'.

org-reload is now on `C-c C-x !', both in Org buffers and in the agenda.

- Carsten

^ permalink raw reply	[flat|nested] 41+ messages in thread

* Re: org-mode on sloooow computer
  2009-04-28 10:33               ` Rainer Stengele
@ 2009-04-30 14:14                 ` Carsten Dominik
  2009-08-31 17:49                   ` Daniel Martins
  0 siblings, 1 reply; 41+ messages in thread
From: Carsten Dominik @ 2009-04-30 14:14 UTC (permalink / raw)
  To: Rainer Stengele; +Cc: emacs-orgmode, e.fraga


On Apr 28, 2009, at 12:33 PM, Rainer Stengele wrote:

> Carsten Dominik schrieb:
>> I have just pushed one more optimization which may improve things a  
>> bit
>> for you, Rainer.
>>
>> - Carsten
>> ...
>
>
> Hi Carsten,
>
> results see here:
>
>
> before your last optimsation:
>
> org-run-agenda-series                                          
> 1           1.797         1.797
>
> after your optimisation (see below):
>
> org-run-agenda-series                                          
> 1           1.703         1.703
> org-agenda                                                     
> 1           1.703         1.703
> org-let2                                                       
> 2           1.3900000000  0.6950000000
> org-agenda-list                                                
> 1           1.2810000000  1.2810000000
> org-agenda-get-day-entries                                     
> 12          1.202         0.1001666666
> org-agenda-get-scheduled                                       
> 10          0.7969999999  0.0797
> org-end-of-subtree                                             
> 1533        0.4400000000  0.0002870189
> org-time-string-to-absolute                                    
> 1635        0.2360000000  0.0001443425
> org-prepare-agenda                                             
> 3           0.2189999999  0.073
> org-prepare-agenda-buffers                                     
> 1           0.2029999999  0.2029999999
> org-parse-time-string                                          
> 1805        0.188         0.0001041551
> org-agenda-get-timestamps                                      
> 10          0.14          0.0140000000
> org-todo-list                                                  
> 1           0.109         0.109
> org-agenda-get-deadlines                                       
> 10          0.094         0.0094
> org-closest-date                                               
> 240         0.094         0.0003916666
> org-back-to-heading                                            
> 2206        0.094         4.26...e-005
> org-finalize-agenda                                            
> 3           0.094         0.0313333333
> org-let                                                        
> 1           0.094         0.094
> org-outline-level                                              
> 1533        0.094         6.13...e-005
> org-agenda-get-todos                                           
> 2           0.093         0.0465
> org-date-to-gregorian                                          
> 480         0.078         0.0001625
> org-agenda-fontify-priorities                                  
> 1           0.078         0.078
> org-get-entries-from-diary                                     
> 5           0.063         0.0126
> org-agenda-skip                                                
> 3220        0.063         1.95...e-005
> org-agenda-skip-if                                             
> 167         0.063         0.0003772455
> org-agenda-skip-entry-if                                       
> 167         0.063         0.0003772455
> org-refresh-category-properties                                
> 2           0.0470000000  0.0235000000
> org-get-todo-state                                             
> 335         0.047         0.0001402985
> org-agenda-get-blocks                                          
> 10          0.046         0.0046
> org-agenda-files                                               
> 4           0.032         0.008
> org-get-effort                                                 
> 72          0.031         0.0004305555
> org-entry-get                                                  
> 72          0.031         0.0004305555
> org-format-agenda-item                                         
> 74          0.031         0.0004189189
> org-at-date-range-p                                            
> 219         0.031         0.0001415525
> org-get-wdays                                                  
> 150         0.016         0.0001066666
> org-entries-lessp                                              
> 219         0.016         7.30...e-005
> org-agenda-get-sexps                                           
> 10          0.016         0.0016
> org-agenda-align-tags                                          
> 1           0.016         0.016
> org-finalize-agenda-entries                                    
> 5           0.016         0.0032
> org-check-agenda-file                                          
> 14          0.015         0.0010714285
> org-get-property-block                                         
> 72          0.015         0.0002083333
>
>
>
> So it looks like I have come from 1.797 down to 1.703.
> And by the way - the times are even now varying between
> org-run-agenda-series                                          
> 1           1.563         1.563
> and little over 2 seconds.
>
>
> Will I see much improvement when archiving a lot of subtrees inside  
> the org file?

I don't think so, archiving to a separate file is the best way to keep  
things fast.

- Carsten

>
>
> Thanks so much for this special "Rainer" optimisation ;)
> I also dream of always carrying around a small netbook running  
> mainly emacs with org-mode ...
>
>
> Rainer
>
>
>> On Apr 24, 2009, at 3:37 PM, Rainer Stengele wrote:
>>
>>> Hi Carsten,
>>>
>>> strange enough the latest git version does not improve time for my
>>> agenda at all.
>>> It still is as slow or fast - however you see it.
>>>
>>> org-version is 6.26trans
>>>
>>> ,----
>>> | org-run-agenda-series
>>> 1           1.797         1.797
>>> | org-agenda
>>> 1           1.797         1.797
>>> | org-let2
>>> 2           1.422         0.711
>>> | org-agenda-get-day-entries
>>> 12          1.248         0.104
>>> | org-agenda-list
>>> 1           1.2349999999  1.2349999999
>>> | org-agenda-get-scheduled
>>> 10          0.7979999999  0.0798
>>> | org-end-of-subtree
>>> 1533        0.6430000000  0.0004194390
>>> | org-prepare-agenda
>>> 3           0.359         0.1196666666
>>> | org-prepare-agenda-buffers
>>> 1           0.25          0.25
>>> | org-back-to-heading
>>> 2198        0.1880000000  8.55...e-005
>>> | org-todo-list
>>> 1           0.187         0.187
>>> | org-agenda-get-todos
>>> 2           0.171         0.0855
>>> | org-refresh-category-properties
>>> 2           0.141         0.0705
>>> | org-get-entries-from-diary
>>> 5           0.126         0.0252
>>> | org-agenda-get-deadlines
>>> 10          0.107         0.0107
>>> | org-agenda-get-timestamps
>>> 10          0.078         0.0078
>>> | org-outline-level
>>> 5376        0.064         1.19...e-005
>>> | org-agenda-skip-if
>>> 167         0.061         0.0003652694
>>> | org-agenda-skip-entry-if
>>> 167         0.061         0.0003652694
>>> | org-agenda-get-blocks
>>> 10          0.046         0.0046
>>> | org-check-agenda-file
>>> 14          0.032         0.0022857142
>>> | org-get-todo-state
>>> 333         0.031         9.30...e-005
>>> | org-finalize-agenda
>>> 3           0.016         0.0053333333
>>> | org-time-string-to-absolute
>>> 1627        0.016         9.83...e-006
>>> | org-agenda-get-sexps
>>> 10          0.016         0.0016
>>> | org-at-date-range-p
>>> 217         0.016         7.37...e-005
>>> | org-agenda-align-tags
>>> 1           0.016         0.016
>>> | org-let
>>> 1           0.016         0.016
>>> | org-agenda-files
>>> 4           0.015         0.00375
>>> | org-agenda-skip
>>> 3213        0.015         4.66...e-006
>>> | org-on-heading-p
>>> 164         0.015         9.14...e-005
>>> | org-agenda-set-mode-name
>>> 1           0.0           0.0
>>> | org-date-to-gregorian
>>> 474         0.0           0.0
>>> | org-delete-overlay
>>> 65          0.0           0.0
>>> | org-agenda-reset-markers
>>> 1           0.0           0.0
>>> | org-find-base-buffer-visiting
>>> 14          0.0           0.0
>>> | org-set-sorting-strategy
>>> 2           0.0           0.0
>>> | org-get-effort
>>> 69          0.0           0.0
>>> | org-downcase-keep-props
>>> 41          0.0           0.0
>>> | org-get-agenda-file-buffer
>>> 14          0.0           0.0
>>> | org-fit-agenda-window
>>> 1           0.0           0.0
>>> | org-agenda-check-for-timestamp-as-reason-to-ignore-todo-item
>>> 189         0.0           0.0
>>> | org-entry-get
>>> 69          0.0           0.0
>>> | org-agenda-post-command-hook
>>> 2           0.0           0.0
>>> | org-overlay-get
>>> 241         0.0           0.0
>>> | org-agenda-cleanup-fancy-diary
>>> 5           0.0           0.0
>>> | org-get-wdays
>>> 150         0.0           0.0
>>> | org-parse-time-string
>>> 1797        0.0           0.0
>>> | org-entries-lessp
>>> 215         0.0           0.0
>>> | org-trim
>>> 29          0.0           0.0
>>> | org-closest-date
>>> 237         0.0           0.0
>>> | org-agenda-add-inherited-tags
>>> 72          0.0           0.0
>>> | org-modify-diary-entry-string
>>> 5           0.0           0.0
>>> | org-make-overlay
>>> 65          0.0           0.0
>>> | org-file-menu-entry
>>> 2           0.0           0.0
>>> | org-add-to-diary-list
>>> 5           0.0           0.0
>>> | org-split-string
>>> 39          0.0           0.0
>>> | org-activate-bracket-links
>>> 1           0.0           0.0
>>> | org-add-props
>>> 186         0.0           0.0
>>> | org-agenda-add-time-grid-maybe
>>> 3           0.0           0.0
>>> | org-get-category
>>> 69          0.0           0.0
>>> | org-days-to-iso-week
>>> 3           0.0           0.0
>>> | org-agenda-mode
>>> 1           0.0           0.0
>>> | org-uniquify
>>> 4           0.0           0.0
>>> | org-agenda-new-marker
>>> 107         0.0           0.0
>>> | org-agenda-todayp
>>> 20          0.0           0.0
>>> | org-format-agenda-item
>>> 72          0.0           0.0
>>> | org-overlays-in
>>> 1           0.0           0.0
>>> | org-get-property-block
>>> 69          0.0           0.0
>>> | org-fontify-priorities
>>> 1           0.0           0.0
>>> | org-get-tags-at
>>> 69          0.0           0.0
>>> | org-overlay-put
>>> 130         0.0           0.0
>>> | org-get-todo-face
>>> 68          0.0           0.0
>>> | org-compile-prefix-format
>>> 2           0.0           0.0
>>> | org-agenda-highlight-todo
>>> 72          0.0           0.0
>>> | org-agenda-ndays-to-span
>>> 1           0.0           0.0
>>> | org-agenda-deadline-face
>>> 4           0.0           0.0
>>> | org-add-hook
>>> 2           0.0           0.0
>>> | org-time-string-to-time
>>> 170         0.0           0.0
>>> | org-agenda-fontify-priorities
>>> 1           0.0           0.0
>>> | org-agenda-format-date-aligned
>>> 3           0.0           0.0
>>> | org-diary-default-entry
>>> 5           0.0           0.0
>>> | org-font-lock-add-tag-faces
>>> 1           0.0           0.0
>>> | org-get-priority
>>> 69          0.0           0.0
>>> | org-remove-uniherited-tags
>>> 69          0.0           0.0
>>> | org-get-time-of-day
>>> 37          0.0           0.0
>>> | org-finalize-agenda-entries
>>> 4           0.0           0.0
>>> | org-unhighlight
>>> 2           0.0           0.0
>>> | org-before-change-function
>>> 199         0.0           0.0
>>> `----
>>>
>>> my org file is about 15000 lines large.
>>>
>>>
>>> Rainer
>>>
>>>
>>> Carsten Dominik schrieb:
>>>>
>>>> On Apr 24, 2009, at 10:24 AM, Eric S Fraga wrote:
>>>>
>>>>> Carsten Dominik writes:
>>>>>> On Apr 24, 2009, at 12:10 AM, Eric S Fraga wrote:
>>>>>>> Which part can you not reproduce?
>>>>>>
>>>>>> When I have the agenda on an arbitrary date, pressing "j" does  
>>>>>> *not*
>>>>>> first switch the agenda to today.
>>>>>
>>>>> <blush>
>>>>>
>>>>> Okay, the problem was mine: I had included a very useful method,
>>>>> originally from Tassilo (cf. th-calendar-open-agenda), which would
>>>>> have the agenda view updated when the calendar view changed.   
>>>>> Removing
>>>>> this gives the behaviour I was now looking for, and which is  
>>>>> indeed
>>>>> the default behaviour.  Apologies for the noise.
>>>>>
>>>>> </blush>
>>>>>
>>>>> Actually, this experience is a testament to the insidious nature  
>>>>> (in a
>>>>> positive way) of org-mode: it is taking over my life!  I used to  
>>>>> have
>>>>> the Emacs diary + calendar as the focus of my attention for task  
>>>>> and
>>>>> time management and org-mode was initially an addition to this.
>>>>> org-mode is now almost completely the focus and I really need to  
>>>>> clean
>>>>> up my customisations to remove the old vestiges of how I used to  
>>>>> work.
>>>>>
>>>>> Again, apologies and continued thanks for an excellent system  
>>>>> which I
>>>>> could no longer live without!
>>>>
>>>> I still would like to to see profiling information as I described  
>>>> in my
>>>> message from yesterday, so see if specific operations are  
>>>> particularly
>>>> slow on netbooks or a zaurus.
>>>>
>>>> - Carsten
>>>>
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> Emacs-orgmode mailing list
>>>> Remember: use `Reply All' to send replies to the list.
>>>> Emacs-orgmode@gnu.org
>>>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>>>>
>>>
>>
>>
>>
>> _______________________________________________
>> Emacs-orgmode mailing list
>> Remember: use `Reply All' to send replies to the list.
>> Emacs-orgmode@gnu.org
>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>>
>

^ permalink raw reply	[flat|nested] 41+ messages in thread

* Re: Re: org-mode on sloooow computer
  2009-04-30 14:14                 ` Carsten Dominik
@ 2009-08-31 17:49                   ` Daniel Martins
  2009-08-31 18:02                     ` Leo
  2009-08-31 18:14                     ` Matt Lundin
  0 siblings, 2 replies; 41+ messages in thread
From: Daniel Martins @ 2009-08-31 17:49 UTC (permalink / raw)
  To: Carsten Dominik; +Cc: emacs-orgmode, Rainer Stengele


[-- Attachment #1.1: Type: text/plain, Size: 22431 bytes --]

My org-agenda is incredibly slow. Please help me understand what is
happening


My computer is not so slow. It is a dual core

 Intel(R) Pentium(R) D CPU 2.80GHz
with 2GB of RAM

My organizer.org has 21000 lines

I can split it in a couple of files if this is the solution.

My org-version is 6.21b

GNU Emacs 23.1.50.1 (i486-pc-linux-gnu, GTK+ Version 2.12.9)
 of 2009-08-01 on radon, modified by Debian

Daniel

-----

org-agenda                                                    1
29.408703     29.408703
org-agenda-list                                               1
28.648282000  28.648282000
org-agenda-get-day-entries                                    27
26.459491999  0.9799811851
org-get-tags-at                                               737
21.298774999  0.0288992876
org-up-heading-all                                            2950
21.033886999  0.0071301311
org-agenda-get-scheduled                                      24
9.637174      0.4015489166
org-finalize-agenda                                           1
7.912788      7.912788
org-agenda-to-appt                                            1
7.68922       7.68922
org-agenda-get-todos                                          3
7.542505      2.5141683333
org-agenda-get-deadlines                                      24
6.2434250000  0.2601427083
org-outline-level                                             200310
3.8892260000  1.941...e-05
org-agenda-get-timestamps                                     24
2.4559390000  0.1023307916
org-end-of-subtree                                            3021
1.9833440000  0.0006565190
org-back-to-heading                                           5187
1.0270179999  0.0001979984
org-prepare-agenda-buffers                                    2
0.7970789999  0.3985394999
org-format-agenda-item                                        676
0.7946449999  0.0011755103
org-agenda-get-restriction-and-command                        1
0.760327      0.760327
org-finalize-agenda-entries                                   8
0.641847      0.080230875
org-prepare-agenda                                            1
0.471942      0.471942
org-agenda-highlight-todo                                     510
0.4001490000  0.0007846058
org-get-effort                                                665
0.3708070000  0.0005576045
org-entry-get                                                 665
0.3672690000  0.0005522842
org-get-property-block                                        665
0.3582529999  0.0005387263
org-agenda-get-blocks                                         24
0.3424489999  0.0142687083
org-agenda-get-sexps                                          21
0.2189269999  0.0104250952
org-parse-time-string                                         2599
0.2118380000  8.150...e-05
org-on-heading-p                                              502
0.1997950000  0.0003979980
org-agenda-skip                                               5744
0.1968189999  3.426...e-05
org-get-priority                                              663
0.1852529999  0.0002794162
org-get-todo-state                                            764
0.1823689999  0.0002387028
org-time-string-to-time                                       144
0.1796119999  0.0012473055
org-activate-bracket-links                                    26
0.1460520000  0.0056173846
org-time-string-to-absolute                                   2455
0.097197      3.959...e-05
org-at-date-range-p                                           488
0.0821609999  0.0001683627
org-agenda-align-tags                                         1
0.073629      0.073629
org-get-entries-from-diary                                    7
0.069128      0.0098754285
org-refresh-category-properties                               6
0.052706      0.0087843333
org-fit-window-to-buffer                                      2
0.050455      0.0252275
org-fit-agenda-window                                         1
0.049025      0.049025
org-add-props                                                 1920
0.0480150000  2.500...e-05
org-entries-lessp                                             2348
0.0298160000  1.269...e-05
org-closest-date                                              519
0.0278379999  5.363...e-05
org-get-agenda-file-buffer                                    33
0.0172350000  0.0005222727
org-find-base-buffer-visiting                                 33
0.0170039999  0.0005152727
org-agenda-add-inherited-tags                                 676
0.0158009999  2.337...e-05
org-date-to-gregorian                                         1039
0.0139500000  1.342...e-05
org-split-string                                              2001
0.0123330000  6.163...e-06
org-agenda-new-marker                                         1096
0.0122370000  1.116...e-05
org-diary-sexp-entry                                          413
0.0116180000  2.813...e-05
org-downcase-keep-props                                       2734
0.0074770000  2.734...e-06
org-add-prop-inherited                                        2606
0.0053880000  2.067...e-06
org-calendar-holiday                                          7
0.005129      0.0007327142
org-get-time-of-day                                           154
0.0036909999  2.396...e-05
org-fontify-priorities                                        1
0.003512      0.003512
org-remove-uniherited-tags                                    2541
0.0032780000  1.290...e-06
org-trim                                                      578
0.0032199999  5.570...e-06
org-check-agenda-file                                         30
0.0029500000  9.833...e-05
org-get-wdays                                                 688
0.0029190000  4.242...e-06
org-get-category                                              766
0.0018540000  2.420...e-06
org-agenda-mode                                               1
0.001529      0.001529
org-agenda-add-time-grid-maybe                                7
0.001149      0.0001641428
org-agenda-todayp                                             48
0.0011        2.291...e-05
org-before-change-function                                    530
0.0008880000  1.675...e-06
org-get-todo-face                                             443
0.0008620000  1.945...e-06
org-agenda-files                                              4
0.0007669999  0.0001917499
org-modify-diary-entry-string                                 11
0.0006640000  6.036...e-05
org-agenda-cleanup-fancy-diary                                7
0.000655      9.357...e-05
org-diary-default-entry                                       7
0.0006129999  8.757...e-05
org-agenda-check-for-timestamp-as-reason-to-ignore-todo-item  342
0.0005920000  1.730...e-06
org-add-to-diary-list                                         7
0.000554      7.914...e-05
org-agenda-deadline-face                                      113
0.0005210000  4.610...e-06
org-switch-to-buffer-other-window                             2
0.000457      0.0002285
org-agenda-format-date-aligned                                7
0.000405      5.785...e-05
org-agenda-reset-markers                                      1
0.000398      0.000398
org-uniquify                                                  6
0.0003730000  6.216...e-05
org-days-to-iso-week                                          9
0.0002069999  2.299...e-05
org-overlay-put                                               84
0.0001279999  1.523...e-06
org-make-overlay                                              42
0.0001240000  2.952...e-06
org-compile-prefix-format                                     1
6.2e-05       6.2e-05
org-delete-overlay                                            42
5.599...e-05  1.333...e-06
org-overlay-get                                               43
5.199...e-05  1.209...e-06
org-agenda-set-mode-name                                      1
1.6e-05       1.6e-05
org-add-hook                                                  2
1.400...e-05  7.000...e-06
org-file-menu-entry                                           3
1.3e-05       4.333...e-06
org-overlays-in                                               1
1.3e-05       1.3e-05
org-unhighlight                                               1
4e-06         4e-06
org-agenda-post-command-hook                                  1
3e-06         3e-06
org-region-active-p                                           1
3e-06         3e-06
org-agenda-ndays-to-span                                      2
3e-06         1.5e-06
org-set-sorting-strategy                                      1
2e-06         2e-06
org-release-buffers                                           1
2e-06         2e-06
org-font-lock-add-tag-faces                                   1
2e-06         2e-06


2009/4/30 Carsten Dominik <carsten.dominik@gmail.com>

>
> On Apr 28, 2009, at 12:33 PM, Rainer Stengele wrote:
>
>  Carsten Dominik schrieb:
>>
>>> I have just pushed one more optimization which may improve things a bit
>>> for you, Rainer.
>>>
>>> - Carsten
>>> ...
>>>
>>
>>
>> Hi Carsten,
>>
>> results see here:
>>
>>
>> before your last optimsation:
>>
>> org-run-agenda-series                                         1
>> 1.797         1.797
>>
>> after your optimisation (see below):
>>
>> org-run-agenda-series                                         1
>> 1.703         1.703
>> org-agenda                                                    1
>> 1.703         1.703
>> org-let2                                                      2
>> 1.3900000000  0.6950000000
>> org-agenda-list                                               1
>> 1.2810000000  1.2810000000
>> org-agenda-get-day-entries                                    12
>>  1.202         0.1001666666
>> org-agenda-get-scheduled                                      10
>>  0.7969999999  0.0797
>> org-end-of-subtree                                            1533
>>  0.4400000000  0.0002870189
>> org-time-string-to-absolute                                   1635
>>  0.2360000000  0.0001443425
>> org-prepare-agenda                                            3
>> 0.2189999999  0.073
>> org-prepare-agenda-buffers                                    1
>> 0.2029999999  0.2029999999
>> org-parse-time-string                                         1805
>>  0.188         0.0001041551
>> org-agenda-get-timestamps                                     10
>>  0.14          0.0140000000
>> org-todo-list                                                 1
>> 0.109         0.109
>> org-agenda-get-deadlines                                      10
>>  0.094         0.0094
>> org-closest-date                                              240
>> 0.094         0.0003916666
>> org-back-to-heading                                           2206
>>  0.094         4.26...e-005
>> org-finalize-agenda                                           3
>> 0.094         0.0313333333
>> org-let                                                       1
>> 0.094         0.094
>> org-outline-level                                             1533
>>  0.094         6.13...e-005
>> org-agenda-get-todos                                          2
>> 0.093         0.0465
>> org-date-to-gregorian                                         480
>> 0.078         0.0001625
>> org-agenda-fontify-priorities                                 1
>> 0.078         0.078
>> org-get-entries-from-diary                                    5
>> 0.063         0.0126
>> org-agenda-skip                                               3220
>>  0.063         1.95...e-005
>> org-agenda-skip-if                                            167
>> 0.063         0.0003772455
>> org-agenda-skip-entry-if                                      167
>> 0.063         0.0003772455
>> org-refresh-category-properties                               2
>> 0.0470000000  0.0235000000
>> org-get-todo-state                                            335
>> 0.047         0.0001402985
>> org-agenda-get-blocks                                         10
>>  0.046         0.0046
>> org-agenda-files                                              4
>> 0.032         0.008
>> org-get-effort                                                72
>>  0.031         0.0004305555
>> org-entry-get                                                 72
>>  0.031         0.0004305555
>> org-format-agenda-item                                        74
>>  0.031         0.0004189189
>> org-at-date-range-p                                           219
>> 0.031         0.0001415525
>> org-get-wdays                                                 150
>> 0.016         0.0001066666
>> org-entries-lessp                                             219
>> 0.016         7.30...e-005
>> org-agenda-get-sexps                                          10
>>  0.016         0.0016
>> org-agenda-align-tags                                         1
>> 0.016         0.016
>> org-finalize-agenda-entries                                   5
>> 0.016         0.0032
>> org-check-agenda-file                                         14
>>  0.015         0.0010714285
>> org-get-property-block                                        72
>>  0.015         0.0002083333
>>
>>
>>
>> So it looks like I have come from 1.797 down to 1.703.
>> And by the way - the times are even now varying between
>> org-run-agenda-series                                         1
>> 1.563         1.563
>> and little over 2 seconds.
>>
>>
>> Will I see much improvement when archiving a lot of subtrees inside the
>> org file?
>>
>
> I don't think so, archiving to a separate file is the best way to keep
> things fast.
>
> - Carsten
>
>
>
>>
>> Thanks so much for this special "Rainer" optimisation ;)
>> I also dream of always carrying around a small netbook running mainly
>> emacs with org-mode ...
>>
>>
>> Rainer
>>
>>
>>  On Apr 24, 2009, at 3:37 PM, Rainer Stengele wrote:
>>>
>>>  Hi Carsten,
>>>>
>>>> strange enough the latest git version does not improve time for my
>>>> agenda at all.
>>>> It still is as slow or fast - however you see it.
>>>>
>>>> org-version is 6.26trans
>>>>
>>>> ,----
>>>> | org-run-agenda-series
>>>> 1           1.797         1.797
>>>> | org-agenda
>>>> 1           1.797         1.797
>>>> | org-let2
>>>> 2           1.422         0.711
>>>> | org-agenda-get-day-entries
>>>> 12          1.248         0.104
>>>> | org-agenda-list
>>>> 1           1.2349999999  1.2349999999
>>>> | org-agenda-get-scheduled
>>>> 10          0.7979999999  0.0798
>>>> | org-end-of-subtree
>>>> 1533        0.6430000000  0.0004194390
>>>> | org-prepare-agenda
>>>> 3           0.359         0.1196666666
>>>> | org-prepare-agenda-buffers
>>>> 1           0.25          0.25
>>>> | org-back-to-heading
>>>> 2198        0.1880000000  8.55...e-005
>>>> | org-todo-list
>>>> 1           0.187         0.187
>>>> | org-agenda-get-todos
>>>> 2           0.171         0.0855
>>>> | org-refresh-category-properties
>>>> 2           0.141         0.0705
>>>> | org-get-entries-from-diary
>>>> 5           0.126         0.0252
>>>> | org-agenda-get-deadlines
>>>> 10          0.107         0.0107
>>>> | org-agenda-get-timestamps
>>>> 10          0.078         0.0078
>>>> | org-outline-level
>>>> 5376        0.064         1.19...e-005
>>>> | org-agenda-skip-if
>>>> 167         0.061         0.0003652694
>>>> | org-agenda-skip-entry-if
>>>> 167         0.061         0.0003652694
>>>> | org-agenda-get-blocks
>>>> 10          0.046         0.0046
>>>> | org-check-agenda-file
>>>> 14          0.032         0.0022857142
>>>> | org-get-todo-state
>>>> 333         0.031         9.30...e-005
>>>> | org-finalize-agenda
>>>> 3           0.016         0.0053333333
>>>> | org-time-string-to-absolute
>>>> 1627        0.016         9.83...e-006
>>>> | org-agenda-get-sexps
>>>> 10          0.016         0.0016
>>>> | org-at-date-range-p
>>>> 217         0.016         7.37...e-005
>>>> | org-agenda-align-tags
>>>> 1           0.016         0.016
>>>> | org-let
>>>> 1           0.016         0.016
>>>> | org-agenda-files
>>>> 4           0.015         0.00375
>>>> | org-agenda-skip
>>>> 3213        0.015         4.66...e-006
>>>> | org-on-heading-p
>>>> 164         0.015         9.14...e-005
>>>> | org-agenda-set-mode-name
>>>> 1           0.0           0.0
>>>> | org-date-to-gregorian
>>>> 474         0.0           0.0
>>>> | org-delete-overlay
>>>> 65          0.0           0.0
>>>> | org-agenda-reset-markers
>>>> 1           0.0           0.0
>>>> | org-find-base-buffer-visiting
>>>> 14          0.0           0.0
>>>> | org-set-sorting-strategy
>>>> 2           0.0           0.0
>>>> | org-get-effort
>>>> 69          0.0           0.0
>>>> | org-downcase-keep-props
>>>> 41          0.0           0.0
>>>> | org-get-agenda-file-buffer
>>>> 14          0.0           0.0
>>>> | org-fit-agenda-window
>>>> 1           0.0           0.0
>>>> | org-agenda-check-for-timestamp-as-reason-to-ignore-todo-item
>>>> 189         0.0           0.0
>>>> | org-entry-get
>>>> 69          0.0           0.0
>>>> | org-agenda-post-command-hook
>>>> 2           0.0           0.0
>>>> | org-overlay-get
>>>> 241         0.0           0.0
>>>> | org-agenda-cleanup-fancy-diary
>>>> 5           0.0           0.0
>>>> | org-get-wdays
>>>> 150         0.0           0.0
>>>> | org-parse-time-string
>>>> 1797        0.0           0.0
>>>> | org-entries-lessp
>>>> 215         0.0           0.0
>>>> | org-trim
>>>> 29          0.0           0.0
>>>> | org-closest-date
>>>> 237         0.0           0.0
>>>> | org-agenda-add-inherited-tags
>>>> 72          0.0           0.0
>>>> | org-modify-diary-entry-string
>>>> 5           0.0           0.0
>>>> | org-make-overlay
>>>> 65          0.0           0.0
>>>> | org-file-menu-entry
>>>> 2           0.0           0.0
>>>> | org-add-to-diary-list
>>>> 5           0.0           0.0
>>>> | org-split-string
>>>> 39          0.0           0.0
>>>> | org-activate-bracket-links
>>>> 1           0.0           0.0
>>>> | org-add-props
>>>> 186         0.0           0.0
>>>> | org-agenda-add-time-grid-maybe
>>>> 3           0.0           0.0
>>>> | org-get-category
>>>> 69          0.0           0.0
>>>> | org-days-to-iso-week
>>>> 3           0.0           0.0
>>>> | org-agenda-mode
>>>> 1           0.0           0.0
>>>> | org-uniquify
>>>> 4           0.0           0.0
>>>> | org-agenda-new-marker
>>>> 107         0.0           0.0
>>>> | org-agenda-todayp
>>>> 20          0.0           0.0
>>>> | org-format-agenda-item
>>>> 72          0.0           0.0
>>>> | org-overlays-in
>>>> 1           0.0           0.0
>>>> | org-get-property-block
>>>> 69          0.0           0.0
>>>> | org-fontify-priorities
>>>> 1           0.0           0.0
>>>> | org-get-tags-at
>>>> 69          0.0           0.0
>>>> | org-overlay-put
>>>> 130         0.0           0.0
>>>> | org-get-todo-face
>>>> 68          0.0           0.0
>>>> | org-compile-prefix-format
>>>> 2           0.0           0.0
>>>> | org-agenda-highlight-todo
>>>> 72          0.0           0.0
>>>> | org-agenda-ndays-to-span
>>>> 1           0.0           0.0
>>>> | org-agenda-deadline-face
>>>> 4           0.0           0.0
>>>> | org-add-hook
>>>> 2           0.0           0.0
>>>> | org-time-string-to-time
>>>> 170         0.0           0.0
>>>> | org-agenda-fontify-priorities
>>>> 1           0.0           0.0
>>>> | org-agenda-format-date-aligned
>>>> 3           0.0           0.0
>>>> | org-diary-default-entry
>>>> 5           0.0           0.0
>>>> | org-font-lock-add-tag-faces
>>>> 1           0.0           0.0
>>>> | org-get-priority
>>>> 69          0.0           0.0
>>>> | org-remove-uniherited-tags
>>>> 69          0.0           0.0
>>>> | org-get-time-of-day
>>>> 37          0.0           0.0
>>>> | org-finalize-agenda-entries
>>>> 4           0.0           0.0
>>>> | org-unhighlight
>>>> 2           0.0           0.0
>>>> | org-before-change-function
>>>> 199         0.0           0.0
>>>> `----
>>>>
>>>> my org file is about 15000 lines large.
>>>>
>>>>
>>>> Rainer
>>>>
>>>>
>>>> Carsten Dominik schrieb:
>>>>
>>>>>
>>>>> On Apr 24, 2009, at 10:24 AM, Eric S Fraga wrote:
>>>>>
>>>>>  Carsten Dominik writes:
>>>>>>
>>>>>>> On Apr 24, 2009, at 12:10 AM, Eric S Fraga wrote:
>>>>>>>
>>>>>>>> Which part can you not reproduce?
>>>>>>>>
>>>>>>>
>>>>>>> When I have the agenda on an arbitrary date, pressing "j" does *not*
>>>>>>> first switch the agenda to today.
>>>>>>>
>>>>>>
>>>>>> <blush>
>>>>>>
>>>>>> Okay, the problem was mine: I had included a very useful method,
>>>>>> originally from Tassilo (cf. th-calendar-open-agenda), which would
>>>>>> have the agenda view updated when the calendar view changed.  Removing
>>>>>> this gives the behaviour I was now looking for, and which is indeed
>>>>>> the default behaviour.  Apologies for the noise.
>>>>>>
>>>>>> </blush>
>>>>>>
>>>>>> Actually, this experience is a testament to the insidious nature (in a
>>>>>> positive way) of org-mode: it is taking over my life!  I used to have
>>>>>> the Emacs diary + calendar as the focus of my attention for task and
>>>>>> time management and org-mode was initially an addition to this.
>>>>>> org-mode is now almost completely the focus and I really need to clean
>>>>>> up my customisations to remove the old vestiges of how I used to work.
>>>>>>
>>>>>> Again, apologies and continued thanks for an excellent system which I
>>>>>> could no longer live without!
>>>>>>
>>>>>
>>>>> I still would like to to see profiling information as I described in my
>>>>> message from yesterday, so see if specific operations are particularly
>>>>> slow on netbooks or a zaurus.
>>>>>
>>>>> - Carsten
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> Emacs-orgmode mailing list
>>>>> Remember: use `Reply All' to send replies to the list.
>>>>> Emacs-orgmode@gnu.org
>>>>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>>>>>
>>>>>
>>>>
>>>
>>>
>>> _______________________________________________
>>> Emacs-orgmode mailing list
>>> Remember: use `Reply All' to send replies to the list.
>>> Emacs-orgmode@gnu.org
>>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>>>
>>>
>>
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>

[-- Attachment #1.2: Type: text/html, Size: 25856 bytes --]

[-- Attachment #2: Type: text/plain, Size: 204 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

^ permalink raw reply	[flat|nested] 41+ messages in thread

* Re: org-mode on sloooow computer
  2009-08-31 17:49                   ` Daniel Martins
@ 2009-08-31 18:02                     ` Leo
  2009-08-31 18:12                       ` Daniel Martins
  2009-08-31 18:14                     ` Matt Lundin
  1 sibling, 1 reply; 41+ messages in thread
From: Leo @ 2009-08-31 18:02 UTC (permalink / raw)
  To: emacs-orgmode

On 2009-08-31 18:49 +0100, Daniel Martins wrote:
> My org-version is 6.21b
>
> GNU Emacs 23.1.50.1 (i486-pc-linux-gnu, GTK+ Version 2.12.9)
>  of 2009-08-01 on radon, modified by Debian

Have you tried a more recent org version? I think Carsten has done some
profiling a while back. I haven't noticed any slowdown since all my org
files are relatively small. I am running org "6.29c".

Leo

-- 
Emacs uptime: 14 days, 3 hours, 44 minutes, 35 seconds

^ permalink raw reply	[flat|nested] 41+ messages in thread

* Re: Re: org-mode on sloooow computer
  2009-08-31 18:02                     ` Leo
@ 2009-08-31 18:12                       ` Daniel Martins
  2009-08-31 18:41                         ` Matt Lundin
  0 siblings, 1 reply; 41+ messages in thread
From: Daniel Martins @ 2009-08-31 18:12 UTC (permalink / raw)
  To: Leo; +Cc: emacs-orgmode


[-- Attachment #1.1: Type: text/plain, Size: 1028 bytes --]

This version is 30 days old.
To do not create problems with my Ubuntu distribution it is a bit hard to
try newer versions but I can try if this is

 I feel that there is something critical beyond an upgrade but I do not know
how to find the core of the problem

Other modes are not slow

Daniel


2009/8/31 Leo <sdl.web@gmail.com>

> On 2009-08-31 18:49 +0100, Daniel Martins wrote:
> > My org-version is 6.21b
> >
> > GNU Emacs 23.1.50.1 (i486-pc-linux-gnu, GTK+ Version 2.12.9)
> >  of 2009-08-01 on radon, modified by Debian
>
> Have you tried a more recent org version? I think Carsten has done some
> profiling a while back. I haven't noticed any slowdown since all my org
> files are relatively small. I am running org "6.29c".
>
> Leo
>
> --
> Emacs uptime: 14 days, 3 hours, 44 minutes, 35 seconds
>
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>

[-- Attachment #1.2: Type: text/html, Size: 1632 bytes --]

[-- Attachment #2: Type: text/plain, Size: 204 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

^ permalink raw reply	[flat|nested] 41+ messages in thread

* Re: org-mode on sloooow computer
  2009-08-31 17:49                   ` Daniel Martins
  2009-08-31 18:02                     ` Leo
@ 2009-08-31 18:14                     ` Matt Lundin
  1 sibling, 0 replies; 41+ messages in thread
From: Matt Lundin @ 2009-08-31 18:14 UTC (permalink / raw)
  To: Daniel Martins; +Cc: emacs-orgmode

Daniel Martins <danielemc@gmail.com> writes:

> My org-agenda is incredibly slow. Please help me understand what is
> happening
>
> My computer is not so slow. It is a dual core
>
>  Intel(R) Pentium(R) D CPU 2.80GHz
> with 2GB of RAM
>
> My organizer.org has 21000 lines
>
> I can split it in a couple of files if this is the solution.
>
> My org-version is 6.21b
>
> GNU Emacs 23.1.50.1 (i486-pc-linux-gnu, GTK+ Version 2.12.9)
>  of 2009-08-01 on radon, modified by Debian

As a first step, I would recommend upgrading to the most recent version
of org-mode. As the conversation you forwarded suggests, there have been
a bunch of optimizations since 6.21b. Other than that, I'm not sure what
would be causing the slowness -- I have thousands of lines in my org
files and the agenda appears almost instantaneously on a very modest
Atom processor. Are other emacs modes slow on the machine?

Best,
Matt

^ permalink raw reply	[flat|nested] 41+ messages in thread

* Re: org-mode on sloooow computer
  2009-08-31 18:12                       ` Daniel Martins
@ 2009-08-31 18:41                         ` Matt Lundin
  2009-08-31 21:03                           ` Daniel Martins
  0 siblings, 1 reply; 41+ messages in thread
From: Matt Lundin @ 2009-08-31 18:41 UTC (permalink / raw)
  To: Daniel Martins; +Cc: emacs-orgmode, Leo

Daniel Martins <danielemc@gmail.com> writes:

> This version is 30 days old.

Actually, org-mode 6.21b was released on Feb. 2, 2009.

But org-mode does change quickly. :)

> To do not create problems with my Ubuntu distribution it is a bit hard
> to try newer versions but I can try if this is
>
>  I feel that there is something critical beyond an upgrade but I do not
> know how to find the core of the problem
>
> Other modes are not slow

You can always try out a new version of org-mode without changing
anything in your emacs installation. Simply download
(http://orgmode.org/org-6.29c.zip), unzip, byte-compile the files
(either from the command line or dired), and add the new directory to
your load path.

See this FAQ for more information:

http://orgmode.org/worg/org-faq.php#installing-org-without-make-tools

Best,
Matt

^ permalink raw reply	[flat|nested] 41+ messages in thread

* Re: org-mode on sloooow computer
  2009-08-31 18:41                         ` Matt Lundin
@ 2009-08-31 21:03                           ` Daniel Martins
  2009-08-31 21:11                             ` Leo
  0 siblings, 1 reply; 41+ messages in thread
From: Daniel Martins @ 2009-08-31 21:03 UTC (permalink / raw)
  To: Matt Lundin; +Cc: emacs-orgmode, Leo


[-- Attachment #1.1: Type: text/plain, Size: 1312 bytes --]

*You can always try out a new version of org-mode without changing
anything in your emacs installation. Simply download
(http://orgmode.org/org-6.29c.zip), unzip, byte-compile the files
(either from the command line or dired), and add the new directory to
your load path.*


I did all but it complains about a

org-agenda-list: Symbol's function definition is void: elp-wrapper

Daniel

2009/8/31 Matt Lundin <mdl@imapmail.org>

> Daniel Martins <danielemc@gmail.com> writes:
>
> > This version is 30 days old.
>
> Actually, org-mode 6.21b was released on Feb. 2, 2009.
>
> But org-mode does change quickly. :)
>
> > To do not create problems with my Ubuntu distribution it is a bit hard
> > to try newer versions but I can try if this is
> >
> >  I feel that there is something critical beyond an upgrade but I do not
> > know how to find the core of the problem
> >
> > Other modes are not slow
>
> You can always try out a new version of org-mode without changing
> anything in your emacs installation. Simply download
> (http://orgmode.org/org-6.29c.zip), unzip, byte-compile the files
> (either from the command line or dired), and add the new directory to
> your load path.
>
> See this FAQ for more information:
>
> http://orgmode.org/worg/org-faq.php#installing-org-without-make-tools
>
> Best,
> Matt
>

[-- Attachment #1.2: Type: text/html, Size: 2076 bytes --]

[-- Attachment #2: Type: text/plain, Size: 204 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

^ permalink raw reply	[flat|nested] 41+ messages in thread

* Re: org-mode on sloooow computer
  2009-08-31 21:03                           ` Daniel Martins
@ 2009-08-31 21:11                             ` Leo
  2009-08-31 21:25                               ` Daniel Martins
  0 siblings, 1 reply; 41+ messages in thread
From: Leo @ 2009-08-31 21:11 UTC (permalink / raw)
  To: emacs-orgmode

On 2009-08-31 22:03 +0100, Daniel Martins wrote:
> I did all but it complains about a org-agenda-list: Symbol's function
> definition is void: elp-wrapper
>
> Daniel

Maybe put (autoload 'elp-wrapper "elp") somewhere in your .emacs. This
will get your org mode to compile.

But you may want to figure out where that elp-wrapper is used. The
vanilla org mode does not seem to use it.

-- 
Emacs uptime: 14 days, 6 hours, 51 minutes, 8 seconds

^ permalink raw reply	[flat|nested] 41+ messages in thread

* Re: Re: org-mode on sloooow computer
  2009-08-31 21:11                             ` Leo
@ 2009-08-31 21:25                               ` Daniel Martins
  2009-09-01  4:20                                 ` Carsten Dominik
  0 siblings, 1 reply; 41+ messages in thread
From: Daniel Martins @ 2009-08-31 21:25 UTC (permalink / raw)
  To: Leo; +Cc: emacs-orgmode


[-- Attachment #1.1: Type: text/plain, Size: 10682 bytes --]

I had simply added load-path of version 6.29 and tried to load it without
sucess

Following the hints in

http://orgmode.org/worg/org-hacks.php#compiling-org-without-make

I could installed the new version and the times diminished.

However they are still high.

I possibly have to rearrange something in my configuration but I do not know
what!


Daniel



org-agenda                                                    1
8.954259      8.954259
org-agenda-list                                               1
8.222621      8.222621
org-agenda-get-day-entries                                    27
6.0676470000  0.2247276666
org-agenda-get-scheduled                                      24
1.8954390000  0.0789766250
org-agenda-get-deadlines                                      24
1.848125      0.0770052083
org-finalize-agenda                                           1
1.682567      1.682567
org-get-tags-at                                               739
1.5204500000  0.0020574424
org-agenda-to-appt                                            1
1.478704      1.478704
org-end-of-subtree                                            3021
1.369184      0.0004532221
org-up-heading-safe                                           2959
1.3089300000  0.0004423555
org-agenda-get-todos                                          3
1.204345      0.4014483333
org-format-agenda-item                                        678
1.0977590000  0.0016191135
org-finalize-agenda-entries                                   8
1.002133      0.125266625
org-back-to-heading                                           8152
0.7544939999  9.255...e-05
org-agenda-get-restriction-and-command                        1
0.731547      0.731547
org-agenda-get-timestamps                                     24
0.6970960000  0.0290456666
org-agenda-highlight-todo                                     512
0.5082190000  0.0009926152
org-get-effort                                                667
0.4587000000  0.0006877061
org-prepare-agenda-buffers                                    2
0.448168      0.224084
org-prepare-agenda                                            1
0.375422      0.375422
org-entry-get                                                 667
0.3152920000  0.0004727016
org-agenda-get-sexps                                          21
0.3122680000  0.0148699047
org-get-property-block                                        667
0.3088189999  0.0004629970
org-time-string-to-absolute                                   2455
0.2245600000  9.147...e-05
org-get-entries-from-diary                                    7
0.2179910000  0.0311415714
org-agenda-align-tags                                         1
0.196897      0.196897
org-add-props                                                 1928
0.1870930000  9.703...e-05
org-get-priority                                              665
0.1791409999  0.0002693849
org-parse-time-string                                         2599
0.1669620000  6.424...e-05
org-agenda-skip                                               5746
0.1608899999  2.800...e-05
org-closest-date                                              519
0.1604959999  0.0003092408
org-get-todo-state                                            766
0.148052      0.0001932793
org-date-to-gregorian                                         1039
0.14695       0.0001414340
org-trim                                                      578
0.1219580000  0.0002110000
org-agenda-get-blocks                                         24
0.1055319999  0.0043971666
org-outline-level                                             8200
0.0868150000  1.058...e-05
org-at-date-range-p                                           490
0.0674459999  0.0001376448
org-fit-window-to-buffer                                      2
0.0491700000  0.0245850000
org-fit-agenda-window                                         1
0.047655      0.047655
org-on-heading-p                                              502
0.0472360000  9.409...e-05
org-refresh-category-properties                               6
0.044592      0.007432
org-entries-lessp                                             2350
0.0303510000  1.291...e-05
org-agenda-add-inherited-tags                                 678
0.0143810000  2.121...e-05
org-diary-sexp-entry                                          413
0.0117370000  2.841...e-05
org-split-string                                              2007
0.0101030000  5.033...e-06
org-agenda-new-marker                                         1100
0.0094529999  8.593...e-06
org-downcase-keep-props                                       2741
0.0074950000  2.734...e-06
org-calendar-holiday                                          7
0.005071      0.0007244285
org-add-prop-inherited                                        2613
0.0044160000  1.690...e-06
org-get-time-of-day                                           158
0.0034779999  2.201...e-05
org-fontify-priorities                                        1
0.003422      0.003422
org-activate-bracket-links                                    28
0.003122      0.0001115000
org-time-string-to-time                                       144
0.0031109999  2.160...e-05
org-get-wdays                                                 688
0.0029170000  4.239...e-06
org-remove-uniherited-tags                                    2549
0.0029120000  1.142...e-06
org-check-agenda-file                                         30
0.002788      9.293...e-05
org-get-category                                              768
0.0016760000  2.182...e-06
org-get-agenda-file-buffer                                    33
0.001566      4.745...e-05
org-find-base-buffer-visiting                                 33
0.0013430000  4.069...e-05
org-agenda-add-time-grid-maybe                                7
0.0011580000  0.0001654285
org-agenda-mode                                               1
0.001007      0.001007
org-agenda-todayp                                             48
0.000894      1.862...e-05
org-get-todo-face                                             444
0.0008830000  1.988...e-06
org-before-change-function                                    518
0.0008730000  1.685...e-06
org-agenda-files                                              4
0.000864      0.000216
org-agenda-cleanup-fancy-diary                                7
0.000662      9.457...e-05
org-modify-diary-entry-string                                 11
0.0005960000  5.418...e-05
org-diary-default-entry                                       7
0.000533      7.614...e-05
org-agenda-check-for-timestamp-as-reason-to-ignore-todo-item  342
0.0005210000  1.523...e-06
org-add-to-diary-list                                         7
0.000486      6.942...e-05
org-agenda-deadline-face                                      113
0.0004459999  3.946...e-06
org-agenda-format-date-aligned                                7
0.000435      6.214...e-05
org-agenda-reset-markers                                      1
0.000356      0.000356
org-uniquify                                                  6
0.000353      5.883...e-05
org-remove-flyspell-overlays-in                               29
0.0002899999  9.999...e-06
org-days-to-iso-week                                          9
0.0002069999  2.299...e-05
org-switch-to-buffer-other-window                             1
0.000192      0.000192
org-make-overlay                                              42
0.0001350000  3.214...e-06
org-overlay-put                                               84
0.0001129999  1.345...e-06
org-activate-tags                                             3
7.199...e-05  2.399...e-05
org-activate-dates                                            4
7e-05         1.75e-05
org-compile-prefix-format                                     1
6.8e-05       6.8e-05
org-do-emphasis-faces                                         2
6.500...e-05  3.250...e-05
org-overlay-get                                               43
6.399...e-05  1.488...e-06
org-delete-overlay                                            42
5.899...e-05  1.404...e-06
org-unfontify-region                                          2
5.099...e-05  2.549...e-05
org-activate-footnote-links                                   2
4.499...e-05  2.249...e-05
org-activate-plain-links                                      2
3.5e-05       1.75e-05
org-overlays-in                                               1
2.3e-05       2.3e-05
org-activate-angle-links                                      2
2.2e-05       1.1e-05
org-activate-code                                             2
1.7e-05       8.5e-06
org-get-level-face                                            6
1.6e-05       2.666...e-06
org-file-menu-entry                                           3
1.499...e-05  4.999...e-06
org-agenda-set-mode-name                                      1
1.4e-05       1.4e-05
org-add-hook                                                  2
1.300...e-05  6.500...e-06
org-agenda-post-command-hook                                  3
1.2e-05       4e-06
org-hide-wide-columns                                         2
1.1e-05       5.5e-06
org-unhighlight                                               3
1.1e-05       3.666...e-06
org-font-lock-add-tag-faces                                   3
5.999...e-06  2e-06
org-agenda-ndays-to-span                                      2
4.999...e-06  2.499...e-06
org-region-active-p                                           1
4e-06         4e-06
org-font-lock-hook                                            2
4e-06         2e-06
org-do-latex-and-special-faces                                2
3e-06         1.5e-06
org-release-buffers                                           1
3e-06         3e-06
org-set-sorting-strategy                                      1
2e-06         2e-06
org-activate-target-links                                     2
2e-06         1e-06


2009/8/31 Leo <sdl.web@gmail.com>

> On 2009-08-31 22:03 +0100, Daniel Martins wrote:
> > I did all but it complains about a org-agenda-list: Symbol's function
> > definition is void: elp-wrapper
> >
> > Daniel
>
> Maybe put (autoload 'elp-wrapper "elp") somewhere in your .emacs. This
> will get your org mode to compile.
>
> But you may want to figure out where that elp-wrapper is used. The
> vanilla org mode does not seem to use it.
>
> --
> Emacs uptime: 14 days, 6 hours, 51 minutes, 8 seconds
>
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>

[-- Attachment #1.2: Type: text/html, Size: 12683 bytes --]

[-- Attachment #2: Type: text/plain, Size: 204 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

^ permalink raw reply	[flat|nested] 41+ messages in thread

* Re: Re: org-mode on sloooow computer
  2009-08-31 21:25                               ` Daniel Martins
@ 2009-09-01  4:20                                 ` Carsten Dominik
  2009-09-01 13:15                                   ` Daniel Martins
  0 siblings, 1 reply; 41+ messages in thread
From: Carsten Dominik @ 2009-09-01  4:20 UTC (permalink / raw)
  To: Daniel Martins; +Cc: emacs-orgmode, Leo

Hi Daniel,

On Aug 31, 2009, at 11:25 PM, Daniel Martins wrote:

>
> I had simply added load-path of version 6.29 and tried to load it  
> without sucess
>
> Following the hints in
>
> http://orgmode.org/worg/org-hacks.php#compiling-org-without-make
>
> I could installed the new version and the times diminished.
>
> However they are still high.
>
> I possibly have to rearrange something in my configuration but I do  
> not know what!


Looking at the elp timings, things are evenly spread, not single  
function
eating all the time.  Which means that there is no good way to make Org
faster to make these times get smaller.

So here is stuff for you to check:

1. Looks like you are using a 7 day agenda.  Consider using a day agenda

    (setq org-agenda-ndays 1)

2. Looks like you are including all TODO entries into your agenda.
    Consider not doing this.  Have you set org-agenda-include-all-todo ?

3. You seem to get 678 matches.  Assuming that it's a week agenda, this
    still makes 100 matches a day.  Have you that many items scheduled?

4. Consider archiving stuff that is no longer active.

5. Did you compile the Lisp files?



>
>
> Daniel
>
>
>
> org-agenda                                                     
> 1           8.954259      8.954259
> org-agenda-list                                                
> 1           8.222621      8.222621
> org-agenda-get-day-entries                                     
> 27          6.0676470000  0.2247276666
> org-agenda-get-scheduled                                       
> 24          1.8954390000  0.0789766250
> org-agenda-get-deadlines                                       
> 24          1.848125      0.0770052083
> org-finalize-agenda                                            
> 1           1.682567      1.682567
> org-get-tags-at                                                
> 739         1.5204500000  0.0020574424
> org-agenda-to-appt                                             
> 1           1.478704      1.478704
> org-end-of-subtree                                             
> 3021        1.369184      0.0004532221
> org-up-heading-safe                                            
> 2959        1.3089300000  0.0004423555
> org-agenda-get-todos                                           
> 3           1.204345      0.4014483333
> org-format-agenda-item                                         
> 678         1.0977590000  0.0016191135
> org-finalize-agenda-entries                                    
> 8           1.002133      0.125266625
> org-back-to-heading                                            
> 8152        0.7544939999  9.255...e-05
> org-agenda-get-restriction-and-command                         
> 1           0.731547      0.731547
> org-agenda-get-timestamps                                      
> 24          0.6970960000  0.0290456666
> org-agenda-highlight-todo                                      
> 512         0.5082190000  0.0009926152
> org-get-effort                                                 
> 667         0.4587000000  0.0006877061
> org-prepare-agenda-buffers                                     
> 2           0.448168      0.224084
> org-prepare-agenda                                             
> 1           0.375422      0.375422
> org-entry-get                                                  
> 667         0.3152920000  0.0004727016
> org-agenda-get-sexps                                           
> 21          0.3122680000  0.0148699047
> org-get-property-block                                         
> 667         0.3088189999  0.0004629970
> org-time-string-to-absolute                                    
> 2455        0.2245600000  9.147...e-05
> org-get-entries-from-diary                                     
> 7           0.2179910000  0.0311415714
> org-agenda-align-tags                                          
> 1           0.196897      0.196897
> org-add-props                                                  
> 1928        0.1870930000  9.703...e-05
> org-get-priority                                               
> 665         0.1791409999  0.0002693849
> org-parse-time-string                                          
> 2599        0.1669620000  6.424...e-05
> org-agenda-skip                                                
> 5746        0.1608899999  2.800...e-05
> org-closest-date                                               
> 519         0.1604959999  0.0003092408
> org-get-todo-state                                             
> 766         0.148052      0.0001932793
> org-date-to-gregorian                                          
> 1039        0.14695       0.0001414340
> org-trim                                                       
> 578         0.1219580000  0.0002110000
> org-agenda-get-blocks                                          
> 24          0.1055319999  0.0043971666
> org-outline-level                                              
> 8200        0.0868150000  1.058...e-05
> org-at-date-range-p                                            
> 490         0.0674459999  0.0001376448
> org-fit-window-to-buffer                                       
> 2           0.0491700000  0.0245850000
> org-fit-agenda-window                                          
> 1           0.047655      0.047655
> org-on-heading-p                                               
> 502         0.0472360000  9.409...e-05
> org-refresh-category-properties                                
> 6           0.044592      0.007432
> org-entries-lessp                                              
> 2350        0.0303510000  1.291...e-05
> org-agenda-add-inherited-tags                                  
> 678         0.0143810000  2.121...e-05
> org-diary-sexp-entry                                           
> 413         0.0117370000  2.841...e-05
> org-split-string                                               
> 2007        0.0101030000  5.033...e-06
> org-agenda-new-marker                                          
> 1100        0.0094529999  8.593...e-06
> org-downcase-keep-props                                        
> 2741        0.0074950000  2.734...e-06
> org-calendar-holiday                                           
> 7           0.005071      0.0007244285
> org-add-prop-inherited                                         
> 2613        0.0044160000  1.690...e-06
> org-get-time-of-day                                            
> 158         0.0034779999  2.201...e-05
> org-fontify-priorities                                         
> 1           0.003422      0.003422
> org-activate-bracket-links                                     
> 28          0.003122      0.0001115000
> org-time-string-to-time                                        
> 144         0.0031109999  2.160...e-05
> org-get-wdays                                                  
> 688         0.0029170000  4.239...e-06
> org-remove-uniherited-tags                                     
> 2549        0.0029120000  1.142...e-06
> org-check-agenda-file                                          
> 30          0.002788      9.293...e-05
> org-get-category                                               
> 768         0.0016760000  2.182...e-06
> org-get-agenda-file-buffer                                     
> 33          0.001566      4.745...e-05
> org-find-base-buffer-visiting                                  
> 33          0.0013430000  4.069...e-05
> org-agenda-add-time-grid-maybe                                 
> 7           0.0011580000  0.0001654285
> org-agenda-mode                                                
> 1           0.001007      0.001007
> org-agenda-todayp                                              
> 48          0.000894      1.862...e-05
> org-get-todo-face                                              
> 444         0.0008830000  1.988...e-06
> org-before-change-function                                     
> 518         0.0008730000  1.685...e-06
> org-agenda-files                                               
> 4           0.000864      0.000216
> org-agenda-cleanup-fancy-diary                                 
> 7           0.000662      9.457...e-05
> org-modify-diary-entry-string                                  
> 11          0.0005960000  5.418...e-05
> org-diary-default-entry                                        
> 7           0.000533      7.614...e-05
> org-agenda-check-for-timestamp-as-reason-to-ignore-todo-item   
> 342         0.0005210000  1.523...e-06
> org-add-to-diary-list                                          
> 7           0.000486      6.942...e-05
> org-agenda-deadline-face                                       
> 113         0.0004459999  3.946...e-06
> org-agenda-format-date-aligned                                 
> 7           0.000435      6.214...e-05
> org-agenda-reset-markers                                       
> 1           0.000356      0.000356
> org-uniquify                                                   
> 6           0.000353      5.883...e-05
> org-remove-flyspell-overlays-in                                
> 29          0.0002899999  9.999...e-06
> org-days-to-iso-week                                           
> 9           0.0002069999  2.299...e-05
> org-switch-to-buffer-other-window                              
> 1           0.000192      0.000192
> org-make-overlay                                               
> 42          0.0001350000  3.214...e-06
> org-overlay-put                                                
> 84          0.0001129999  1.345...e-06
> org-activate-tags                                              
> 3           7.199...e-05  2.399...e-05
> org-activate-dates                                             
> 4           7e-05         1.75e-05
> org-compile-prefix-format                                      
> 1           6.8e-05       6.8e-05
> org-do-emphasis-faces                                          
> 2           6.500...e-05  3.250...e-05
> org-overlay-get                                                
> 43          6.399...e-05  1.488...e-06
> org-delete-overlay                                             
> 42          5.899...e-05  1.404...e-06
> org-unfontify-region                                           
> 2           5.099...e-05  2.549...e-05
> org-activate-footnote-links                                    
> 2           4.499...e-05  2.249...e-05
> org-activate-plain-links                                       
> 2           3.5e-05       1.75e-05
> org-overlays-in                                                
> 1           2.3e-05       2.3e-05
> org-activate-angle-links                                       
> 2           2.2e-05       1.1e-05
> org-activate-code                                              
> 2           1.7e-05       8.5e-06
> org-get-level-face                                             
> 6           1.6e-05       2.666...e-06
> org-file-menu-entry                                            
> 3           1.499...e-05  4.999...e-06
> org-agenda-set-mode-name                                       
> 1           1.4e-05       1.4e-05
> org-add-hook                                                   
> 2           1.300...e-05  6.500...e-06
> org-agenda-post-command-hook                                   
> 3           1.2e-05       4e-06
> org-hide-wide-columns                                          
> 2           1.1e-05       5.5e-06
> org-unhighlight                                                
> 3           1.1e-05       3.666...e-06
> org-font-lock-add-tag-faces                                    
> 3           5.999...e-06  2e-06
> org-agenda-ndays-to-span                                       
> 2           4.999...e-06  2.499...e-06
> org-region-active-p                                            
> 1           4e-06         4e-06
> org-font-lock-hook                                             
> 2           4e-06         2e-06
> org-do-latex-and-special-faces                                 
> 2           3e-06         1.5e-06
> org-release-buffers                                            
> 1           3e-06         3e-06
> org-set-sorting-strategy                                       
> 1           2e-06         2e-06
> org-activate-target-links                                      
> 2           2e-06         1e-06
>
>
> 2009/8/31 Leo <sdl.web@gmail.com>
> On 2009-08-31 22:03 +0100, Daniel Martins wrote:
> > I did all but it complains about a org-agenda-list: Symbol's  
> function
> > definition is void: elp-wrapper
> >
> > Daniel
>
> Maybe put (autoload 'elp-wrapper "elp") somewhere in your .emacs. This
> will get your org mode to compile.
>
> But you may want to figure out where that elp-wrapper is used. The
> vanilla org mode does not seem to use it.
>
> --
> Emacs uptime: 14 days, 6 hours, 51 minutes, 8 seconds
>
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

^ permalink raw reply	[flat|nested] 41+ messages in thread

* Re: Re: org-mode on sloooow computer
  2009-09-01  4:20                                 ` Carsten Dominik
@ 2009-09-01 13:15                                   ` Daniel Martins
  2009-09-02  7:15                                     ` Carsten Dominik
  0 siblings, 1 reply; 41+ messages in thread
From: Daniel Martins @ 2009-09-01 13:15 UTC (permalink / raw)
  To: Carsten Dominik; +Cc: emacs-orgmode, Leo


[-- Attachment #1.1: Type: text/plain, Size: 24119 bytes --]

Carsten,

thanks for your reply :

1. Looks like you are using a 7 day agenda.  Consider using a day agenda

  (setq org-agenda-ndays 1)


I did it
2. Looks like you are including all TODO entries into your agenda.
  Consider not doing this.  Have you set org-agenda-include-all-todo ?

It was set. I have changed to nil.

3. You seem to get 678 matches.  Assuming that it's a week agenda, this
  still makes 100 matches a day.  Have you that many items scheduled?

Yes. This is an organizational problem. I estimate a date to do something
but due to priorities I keep them late.
I do not know yet how to mark several items and schedule them in a few
keystrokes.


4. Consider archiving stuff that is no longer active.

I did a lot. Same problem as before, I do this stuff one by one and could
not automatize this process. I do not know the impact of archiving in the
same file and in a different file on the speed. Anyway I tried to transport
most of my activities to  organizer.org_archive

5. Did you compile the Lisp files?
org is compiled in the Ubuntu distribution

I have a package which has all my org and bbdb configurations and itwas not
compiled. Now I compiled it. Normally I did not compile my configuration
files but I can change this behaviour.

 org-bbdb-daniel.el now is compiled  to org-bbdb-daniel.elc



After the above changes, here are the results for org version 6.21 (again I
had some issues using the latest versions across my 3 computers and decided
to keep for a while the Ubuntu version to compare them) in the same computer
I used before


org-agenda                                                    1
14.869551     14.869551
org-agenda-list                                               1
14.294828     14.294828
org-agenda-get-day-entries                                    6
13.043817     2.1739695
org-get-tags-at                                               415
11.353463000  0.0273577421
org-up-heading-all                                            1683
11.130422000  0.0066134414
org-agenda-get-scheduled                                      6
7.4157569999  1.2359594999
org-finalize-agenda                                           1
7.07812       7.07812
org-agenda-to-appt                                            1
7.049507      7.049507
org-agenda-get-deadlines                                      6
5.0619689999  0.8436615
org-outline-level                                             107809
1.3698249999  1.270...e-05
org-end-of-subtree                                            1124
0.7953470000  0.0007076040
org-back-to-heading                                           2302
0.6565550000  0.0002852106
org-prepare-agenda-buffers                                    2
0.633362      0.316681
org-agenda-get-restriction-and-command                        1
0.574646      0.574646
org-agenda-get-timestamps                                     6
0.492102      0.0820169999
org-prepare-agenda                                            1
0.45392       0.45392
org-format-agenda-item                                        349
0.3787269999  0.0010851776
org-finalize-agenda-entries                                   1
0.27703       0.27703
org-agenda-highlight-todo                                     183
0.2450790000  0.0013392295
org-get-todo-state                                            421
0.2098799999  0.0004985273
org-time-string-to-absolute                                   616
0.1301960000  0.0002113571
org-add-props                                                 899
0.1232549999  0.0001371023
org-parse-time-string                                         652
0.1133329999  0.0001738236
org-get-effort                                                342
0.1116019999  0.0003263216
org-entry-get                                                 342
0.1099579999  0.0003215146
org-get-property-block                                        342
0.1064390000  0.0003112251
org-get-priority                                              341
0.096785      0.0002838269
org-on-heading-p                                              502
0.0664719999  0.0001324143
org-agenda-get-blocks                                         6
0.054078      0.009013
org-refresh-category-properties                               6
0.0447599999  0.0074599999
org-agenda-skip                                               1309
0.0357310000  2.729...e-05
org-agenda-align-tags                                         1
0.025942      0.025942
org-fit-window-to-buffer                                      2
0.019486      0.009743
org-fit-agenda-window                                         1
0.018062      0.018062
org-at-date-range-p                                           120
0.0162819999  0.0001356833
org-agenda-get-sexps                                          3
0.0158049999  0.0052683333
org-entries-lessp                                             1112
0.0140310000  1.261...e-05
org-get-entries-from-diary                                    1
0.009313      0.009313
org-agenda-add-inherited-tags                                 349
0.0073069999  2.093...e-05
org-closest-date                                              130
0.0069329999  5.333...e-05
org-split-string                                              1122
0.0062539999  5.573...e-06
org-agenda-new-marker                                         690
0.0057279999  8.301...e-06
org-get-agenda-file-buffer                                    12
0.005703      0.00047525
org-find-base-buffer-visiting                                 12
0.0056250000  0.0004687500
org-downcase-keep-props                                       1436
0.0039289999  2.736...e-06
org-date-to-gregorian                                         261
0.0036100000  1.383...e-05
org-add-prop-inherited                                        1463
0.0027849999  1.903...e-06
org-diary-sexp-entry                                          59
0.0019459999  3.298...e-05
org-remove-uniherited-tags                                    1428
0.0018409999  1.289...e-06
org-fontify-priorities                                        1
0.001552      0.001552
org-trim                                                      230
0.0013990000  6.082...e-06
org-agenda-mode                                               1
0.001381      0.001381
org-agenda-add-time-grid-maybe                                1
0.001113      0.001113
org-get-time-of-day                                           46
0.00106       2.304...e-05
org-get-category                                              422
0.0009900000  2.345...e-06
org-calendar-holiday                                          1
0.000975      0.000975
org-activate-bracket-links                                    11
0.0009429999  8.572...e-05
org-before-change-function                                    530
0.0008680000  1.637...e-06
org-agenda-files                                              4
0.000808      0.000202
org-time-string-to-time                                       36
0.0008020000  2.227...e-05
org-get-wdays                                                 172
0.0005410000  3.145...e-06
org-check-agenda-file                                         9
0.000536      5.955...e-05
org-agenda-reset-markers                                      1
0.000475      0.000475
org-switch-to-buffer-other-window                             2
0.000475      0.0002375
org-agenda-deadline-face                                      111
0.0004599999  4.144...e-06
org-uniquify                                                  6
0.000392      6.533...e-05
org-get-todo-face                                             159
0.0003039999  1.911...e-06
org-agenda-todayp                                             12
0.000229      1.908...e-05
org-agenda-post-command-hook                                  23
9.500...e-05  4.130...e-06
org-agenda-cleanup-fancy-diary                                1
9e-05         9e-05
org-unhighlight                                               23
7.900...e-05  3.434...e-06
org-diary-default-entry                                       1
7e-05         7e-05
org-add-to-diary-list                                         1
6.4e-05       6.4e-05
org-days-to-iso-week                                          3
6.2e-05       2.066...e-05
org-compile-prefix-format                                     1
6.2e-05       6.2e-05
org-delete-overlay                                            43
5.999...e-05  1.395...e-06
org-overlay-get                                               44
5.499...e-05  1.249...e-06
org-make-overlay                                              17
5.4e-05       3.176...e-06
org-modify-diary-entry-string                                 1
5.2e-05       5.2e-05
org-agenda-format-date-aligned                                1
5.1e-05       5.1e-05
org-overlay-put                                               34
4.999...e-05  1.470...e-06
org-agenda-set-mode-name                                      1
1.6e-05       1.6e-05
org-add-hook                                                  2
1.400...e-05  7.000...e-06
org-file-menu-entry                                           3
1.300...e-05  4.333...e-06
org-overlays-in                                               1
1.2e-05       1.2e-05
org-region-active-p                                           1
3e-06         3e-06
org-agenda-ndays-to-span                                      2
3e-06         1.5e-06
org-release-buffers                                           1
2e-06         2e-06
org-font-lock-add-tag-faces                                   1
2e-06         2e-06
org-set-sorting-strategy                                      1
1e-06         1e-06




It is better than before, almost 50% faster but I missed some features.
Anyway I miss a hint about scheduling. If I do not schedule I miss a bit the
preferences to solve an unsolved issue. If I do not schedule and do not
include all TODOS I will not see them in my default org-agenda.

I am a bit lost in this jungle. Anyway org-mode saved my life when I had
fewer activities. I think I will find a way of saving my life in this myriad
of activities of my academic life (postgraduate and graduate students,
projects, bureaucracy, personal life, children, payments, etc.)



Daniel





6.21 before Carsten proposals


org-agenda                                                    1
29.408703     29.408703
org-agenda-list                                               1
28.648282000  28.648282000
org-agenda-get-day-entries                                    27
26.459491999  0.9799811851
org-get-tags-at                                               737
21.298774999  0.0288992876
org-up-heading-all                                            2950
21.033886999  0.0071301311
org-agenda-get-scheduled                                      24
9.637174      0.4015489166
org-finalize-agenda                                           1
7.912788      7.912788
org-agenda-to-appt                                            1
7.68922       7.68922
org-agenda-get-todos                                          3
7.542505      2.5141683333
org-agenda-get-deadlines                                      24
6.2434250000  0.2601427083
org-outline-level                                             200310
3.8892260000  1.941...e-05
org-agenda-get-timestamps                                     24
2.4559390000  0.1023307916
org-end-of-subtree                                            3021
1.9833440000  0.0006565190
org-back-to-heading                                           5187
1.0270179999  0.0001979984
(..)



2009/9/1 Carsten Dominik <carsten.dominik@gmail.com>

> Hi Daniel,
>
> On Aug 31, 2009, at 11:25 PM, Daniel Martins wrote:
>
>
>> I had simply added load-path of version 6.29 and tried to load it without
>> sucess
>>
>> Following the hints in
>>
>> http://orgmode.org/worg/org-hacks.php#compiling-org-without-make
>>
>> I could installed the new version and the times diminished.
>>
>> However they are still high.
>>
>> I possibly have to rearrange something in my configuration but I do not
>> know what!
>>
>
>
> Looking at the elp timings, things are evenly spread, not single function
> eating all the time.  Which means that there is no good way to make Org
> faster to make these times get smaller.
>
> So here is stuff for you to check:
>
> 1. Looks like you are using a 7 day agenda.  Consider using a day agenda
>
>   (setq org-agenda-ndays 1)
>
> 2. Looks like you are including all TODO entries into your agenda.
>   Consider not doing this.  Have you set org-agenda-include-all-todo ?
>
> 3. You seem to get 678 matches.  Assuming that it's a week agenda, this
>   still makes 100 matches a day.  Have you that many items scheduled?
>
> 4. Consider archiving stuff that is no longer active.
>
> 5. Did you compile the Lisp files?
>
>
>
>
>
>>
>> Daniel
>>
>>
>>
>> org-agenda                                                    1
>> 8.954259      8.954259
>> org-agenda-list                                               1
>> 8.222621      8.222621
>> org-agenda-get-day-entries                                    27
>>  6.0676470000  0.2247276666
>> org-agenda-get-scheduled                                      24
>>  1.8954390000  0.0789766250
>> org-agenda-get-deadlines                                      24
>>  1.848125      0.0770052083
>> org-finalize-agenda                                           1
>> 1.682567      1.682567
>> org-get-tags-at                                               739
>> 1.5204500000  0.0020574424
>> org-agenda-to-appt                                            1
>> 1.478704      1.478704
>> org-end-of-subtree                                            3021
>>  1.369184      0.0004532221
>> org-up-heading-safe                                           2959
>>  1.3089300000  0.0004423555
>> org-agenda-get-todos                                          3
>> 1.204345      0.4014483333
>> org-format-agenda-item                                        678
>> 1.0977590000  0.0016191135
>> org-finalize-agenda-entries                                   8
>> 1.002133      0.125266625
>> org-back-to-heading                                           8152
>>  0.7544939999  9.255...e-05
>> org-agenda-get-restriction-and-command                        1
>> 0.731547      0.731547
>> org-agenda-get-timestamps                                     24
>>  0.6970960000  0.0290456666
>> org-agenda-highlight-todo                                     512
>> 0.5082190000  0.0009926152
>> org-get-effort                                                667
>> 0.4587000000  0.0006877061
>> org-prepare-agenda-buffers                                    2
>> 0.448168      0.224084
>> org-prepare-agenda                                            1
>> 0.375422      0.375422
>> org-entry-get                                                 667
>> 0.3152920000  0.0004727016
>> org-agenda-get-sexps                                          21
>>  0.3122680000  0.0148699047
>> org-get-property-block                                        667
>> 0.3088189999  0.0004629970
>> org-time-string-to-absolute                                   2455
>>  0.2245600000  9.147...e-05
>> org-get-entries-from-diary                                    7
>> 0.2179910000  0.0311415714
>> org-agenda-align-tags                                         1
>> 0.196897      0.196897
>> org-add-props                                                 1928
>>  0.1870930000  9.703...e-05
>> org-get-priority                                              665
>> 0.1791409999  0.0002693849
>> org-parse-time-string                                         2599
>>  0.1669620000  6.424...e-05
>> org-agenda-skip                                               5746
>>  0.1608899999  2.800...e-05
>> org-closest-date                                              519
>> 0.1604959999  0.0003092408
>> org-get-todo-state                                            766
>> 0.148052      0.0001932793
>> org-date-to-gregorian                                         1039
>>  0.14695       0.0001414340
>> org-trim                                                      578
>> 0.1219580000  0.0002110000
>> org-agenda-get-blocks                                         24
>>  0.1055319999  0.0043971666
>> org-outline-level                                             8200
>>  0.0868150000  1.058...e-05
>> org-at-date-range-p                                           490
>> 0.0674459999  0.0001376448
>> org-fit-window-to-buffer                                      2
>> 0.0491700000  0.0245850000
>> org-fit-agenda-window                                         1
>> 0.047655      0.047655
>> org-on-heading-p                                              502
>> 0.0472360000  9.409...e-05
>> org-refresh-category-properties                               6
>> 0.044592      0.007432
>> org-entries-lessp                                             2350
>>  0.0303510000  1.291...e-05
>> org-agenda-add-inherited-tags                                 678
>> 0.0143810000  2.121...e-05
>> org-diary-sexp-entry                                          413
>> 0.0117370000  2.841...e-05
>> org-split-string                                              2007
>>  0.0101030000  5.033...e-06
>> org-agenda-new-marker                                         1100
>>  0.0094529999  8.593...e-06
>> org-downcase-keep-props                                       2741
>>  0.0074950000  2.734...e-06
>> org-calendar-holiday                                          7
>> 0.005071      0.0007244285
>> org-add-prop-inherited                                        2613
>>  0.0044160000  1.690...e-06
>> org-get-time-of-day                                           158
>> 0.0034779999  2.201...e-05
>> org-fontify-priorities                                        1
>> 0.003422      0.003422
>> org-activate-bracket-links                                    28
>>  0.003122      0.0001115000
>> org-time-string-to-time                                       144
>> 0.0031109999  2.160...e-05
>> org-get-wdays                                                 688
>> 0.0029170000  4.239...e-06
>> org-remove-uniherited-tags                                    2549
>>  0.0029120000  1.142...e-06
>> org-check-agenda-file                                         30
>>  0.002788      9.293...e-05
>> org-get-category                                              768
>> 0.0016760000  2.182...e-06
>> org-get-agenda-file-buffer                                    33
>>  0.001566      4.745...e-05
>> org-find-base-buffer-visiting                                 33
>>  0.0013430000  4.069...e-05
>> org-agenda-add-time-grid-maybe                                7
>> 0.0011580000  0.0001654285
>> org-agenda-mode                                               1
>> 0.001007      0.001007
>> org-agenda-todayp                                             48
>>  0.000894      1.862...e-05
>> org-get-todo-face                                             444
>> 0.0008830000  1.988...e-06
>> org-before-change-function                                    518
>> 0.0008730000  1.685...e-06
>> org-agenda-files                                              4
>> 0.000864      0.000216
>> org-agenda-cleanup-fancy-diary                                7
>> 0.000662      9.457...e-05
>> org-modify-diary-entry-string                                 11
>>  0.0005960000  5.418...e-05
>> org-diary-default-entry                                       7
>> 0.000533      7.614...e-05
>> org-agenda-check-for-timestamp-as-reason-to-ignore-todo-item  342
>> 0.0005210000  1.523...e-06
>> org-add-to-diary-list                                         7
>> 0.000486      6.942...e-05
>> org-agenda-deadline-face                                      113
>> 0.0004459999  3.946...e-06
>> org-agenda-format-date-aligned                                7
>> 0.000435      6.214...e-05
>> org-agenda-reset-markers                                      1
>> 0.000356      0.000356
>> org-uniquify                                                  6
>> 0.000353      5.883...e-05
>> org-remove-flyspell-overlays-in                               29
>>  0.0002899999  9.999...e-06
>> org-days-to-iso-week                                          9
>> 0.0002069999  2.299...e-05
>> org-switch-to-buffer-other-window                             1
>> 0.000192      0.000192
>> org-make-overlay                                              42
>>  0.0001350000  3.214...e-06
>> org-overlay-put                                               84
>>  0.0001129999  1.345...e-06
>> org-activate-tags                                             3
>> 7.199...e-05  2.399...e-05
>> org-activate-dates                                            4
>> 7e-05         1.75e-05
>> org-compile-prefix-format                                     1
>> 6.8e-05       6.8e-05
>> org-do-emphasis-faces                                         2
>> 6.500...e-05  3.250...e-05
>> org-overlay-get                                               43
>>  6.399...e-05  1.488...e-06
>> org-delete-overlay                                            42
>>  5.899...e-05  1.404...e-06
>> org-unfontify-region                                          2
>> 5.099...e-05  2.549...e-05
>> org-activate-footnote-links                                   2
>> 4.499...e-05  2.249...e-05
>> org-activate-plain-links                                      2
>> 3.5e-05       1.75e-05
>> org-overlays-in                                               1
>> 2.3e-05       2.3e-05
>> org-activate-angle-links                                      2
>> 2.2e-05       1.1e-05
>> org-activate-code                                             2
>> 1.7e-05       8.5e-06
>> org-get-level-face                                            6
>> 1.6e-05       2.666...e-06
>> org-file-menu-entry                                           3
>> 1.499...e-05  4.999...e-06
>> org-agenda-set-mode-name                                      1
>> 1.4e-05       1.4e-05
>> org-add-hook                                                  2
>> 1.300...e-05  6.500...e-06
>> org-agenda-post-command-hook                                  3
>> 1.2e-05       4e-06
>> org-hide-wide-columns                                         2
>> 1.1e-05       5.5e-06
>> org-unhighlight                                               3
>> 1.1e-05       3.666...e-06
>> org-font-lock-add-tag-faces                                   3
>> 5.999...e-06  2e-06
>> org-agenda-ndays-to-span                                      2
>> 4.999...e-06  2.499...e-06
>> org-region-active-p                                           1
>> 4e-06         4e-06
>> org-font-lock-hook                                            2
>> 4e-06         2e-06
>> org-do-latex-and-special-faces                                2
>> 3e-06         1.5e-06
>> org-release-buffers                                           1
>> 3e-06         3e-06
>> org-set-sorting-strategy                                      1
>> 2e-06         2e-06
>> org-activate-target-links                                     2
>> 2e-06         1e-06
>>
>>
>> 2009/8/31 Leo <sdl.web@gmail.com>
>> On 2009-08-31 22:03 +0100, Daniel Martins wrote:
>> > I did all but it complains about a org-agenda-list: Symbol's function
>> > definition is void: elp-wrapper
>> >
>> > Daniel
>>
>> Maybe put (autoload 'elp-wrapper "elp") somewhere in your .emacs. This
>> will get your org mode to compile.
>>
>> But you may want to figure out where that elp-wrapper is used. The
>> vanilla org mode does not seem to use it.
>>
>> --
>> Emacs uptime: 14 days, 6 hours, 51 minutes, 8 seconds
>>
>>
>>
>> _______________________________________________
>> Emacs-orgmode mailing list
>> Remember: use `Reply All' to send replies to the list.
>> Emacs-orgmode@gnu.org
>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>>
>> _______________________________________________
>> Emacs-orgmode mailing list
>> Remember: use `Reply All' to send replies to the list.
>> Emacs-orgmode@gnu.org
>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>>
>
>

[-- Attachment #1.2: Type: text/html, Size: 27590 bytes --]

[-- Attachment #2: Type: text/plain, Size: 204 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

^ permalink raw reply	[flat|nested] 41+ messages in thread

* Re: Re: org-mode on sloooow computer
  2009-09-01 13:15                                   ` Daniel Martins
@ 2009-09-02  7:15                                     ` Carsten Dominik
  0 siblings, 0 replies; 41+ messages in thread
From: Carsten Dominik @ 2009-09-02  7:15 UTC (permalink / raw)
  To: Daniel Martins; +Cc: emacs-orgmode, Leo

Hi Daniel,

On Sep 1, 2009, at 3:15 PM, Daniel Martins wrote:

>
>
> Carsten,
>
> thanks for your reply :
>
> 1. Looks like you are using a 7 day agenda.  Consider using a day  
> agenda
>
>   (setq org-agenda-ndays 1)
>
>
> I did it
> 2. Looks like you are including all TODO entries into your agenda.
>   Consider not doing this.  Have you set org-agenda-include-all-todo ?
>
> It was set. I have changed to nil.
>
> 3. You seem to get 678 matches.  Assuming that it's a week agenda,  
> this
>   still makes 100 matches a day.  Have you that many items scheduled?
>
> Yes. This is an organizational problem. I estimate a date to do  
> something but due to priorities I keep them late.
> I do not know yet how to mark several items and schedule them in a  
> few keystrokes.

You can do this from the agenda.  Use "m" to mark entries, and
then B to execute a command on all of them.  You need a recent
version of org for this, 6.21 will not be sufficient.

>
>
> 4. Consider archiving stuff that is no longer active.
>
> I did a lot. Same problem as before, I do this stuff one by one and  
> could not automatize this process. I do not know the impact of  
> archiving in the same file and in a different file on the speed.  
> Anyway I tried to transport most of my activities to   
> organizer.org_archive
>
> 5. Did you compile the Lisp files?
>
> org is compiled in the Ubuntu distribution
>
> I have a package which has all my org and bbdb configurations and  
> itwas not compiled. Now I compiled it. Normally I did not compile my  
> configuration files but I can change this behaviour.
>
>  org-bbdb-daniel.el now is compiled  to org-bbdb-daniel.elc

If this is just variable settings, this will not make a difference, so
you can leave them uncompiled.

>
>
>
> After the above changes, here are the results for org version 6.21  
> (again I had some issues using the latest versions across my 3  
> computers and decided to keep for a while the Ubuntu version to  
> compare them) in the same computer I used before

First of all, as you have already noticed, there have been
massive optimizations after 6.21.  You can see from your
timings that the entire time is spent in org-up-heading-all.
In a more recent version that function basically takes no time
at all anymore, so you will get from 14 seconds to 3 or so.



>
>
> org-agenda                                                     
> 1           14.869551     14.869551
> org-agenda-list                                                
> 1           14.294828     14.294828
> org-agenda-get-day-entries                                     
> 6           13.043817     2.1739695
> org-get-tags-at                                                
> 415         11.353463000  0.0273577421
> org-up-heading-all                                             
> 1683        11.130422000  0.0066134414


> It is better than before, almost 50% faster but I missed some  
> features. Anyway I miss a hint about scheduling. If I do not  
> schedule I miss a bit the preferences to solve an unsolved issue. If  
> I do not schedule and do not include all TODOS I will not see them  
> in my default org-agenda.


I was not suggesting that you should not schedule stuff.
Of course you should.  This is important.
I was merely curious about why you had so many matches on a day.

About the TODOs: why do you think it is necessary to have
them in the same view as todays agenda?  The scheduled stuff
is what is important for today.  You can use a separate view
for the TODO entries when you are looking for unscheduled TODOs.
If you have all your TODO entries in each agenda, the only
thing this will do is giving you a feeling of being overwhelmed.

>
> I am a bit lost in this jungle. Anyway org-mode saved my life when I  
> had fewer activities. I think I will find a way of saving my life in  
> this myriad of activities of my academic life (postgraduate and  
> graduate students, projects, bureaucracy, personal life, children,  
> payments, etc.)

If you keep these different areas of your activity in separate files,
you can speed up things further by putting Org's focus onto a single  
file:

See the commands `C-c C-x <' and `C-c C-x >' in the manual.

http://orgmode.org/manual/Agenda-files.html#Agenda-files

Hope this all helps a bit.

- Carsten

>
>
>
> Daniel
>
>
>
>
>
> 6.21 before Carsten proposals
>
>
> org-agenda                                                     
> 1           29.408703     29.408703
> org-agenda-list                                                
> 1           28.648282000  28.648282000
> org-agenda-get-day-entries                                     
> 27          26.459491999  0.9799811851
> org-get-tags-at                                                
> 737         21.298774999  0.0288992876
> org-up-heading-all                                             
> 2950        21.033886999  0.0071301311
> org-agenda-get-scheduled                                       
> 24          9.637174      0.4015489166
> org-finalize-agenda                                            
> 1           7.912788      7.912788
> org-agenda-to-appt                                             
> 1           7.68922       7.68922
> org-agenda-get-todos                                           
> 3           7.542505      2.5141683333
> org-agenda-get-deadlines                                       
> 24          6.2434250000  0.2601427083
> org-outline-level                                              
> 200310      3.8892260000  1.941...e-05
> org-agenda-get-timestamps                                      
> 24          2.4559390000  0.1023307916
> org-end-of-subtree                                             
> 3021        1.9833440000  0.0006565190
> org-back-to-heading                                            
> 5187        1.0270179999  0.0001979984
> (..)
>
>
>
> 2009/9/1 Carsten Dominik <carsten.dominik@gmail.com>
> Hi Daniel,
>
>
> On Aug 31, 2009, at 11:25 PM, Daniel Martins wrote:
>
>
> I had simply added load-path of version 6.29 and tried to load it  
> without sucess
>
> Following the hints in
>
> http://orgmode.org/worg/org-hacks.php#compiling-org-without-make
>
> I could installed the new version and the times diminished.
>
> However they are still high.
>
> I possibly have to rearrange something in my configuration but I do  
> not know what!
>
>
> Looking at the elp timings, things are evenly spread, not single  
> function
> eating all the time.  Which means that there is no good way to make  
> Org
> faster to make these times get smaller.
>
> So here is stuff for you to check:
>
> 1. Looks like you are using a 7 day agenda.  Consider using a day  
> agenda
>
>   (setq org-agenda-ndays 1)
>
> 2. Looks like you are including all TODO entries into your agenda.
>   Consider not doing this.  Have you set org-agenda-include-all-todo ?
>
> 3. You seem to get 678 matches.  Assuming that it's a week agenda,  
> this
>   still makes 100 matches a day.  Have you that many items scheduled?
>
> 4. Consider archiving stuff that is no longer active.
>
> 5. Did you compile the Lisp files?
>
>
>
>
>
>
> Daniel
>
>
>
> org-agenda                                                     
> 1           8.954259      8.954259
> org-agenda-list                                                
> 1           8.222621      8.222621
> org-agenda-get-day-entries                                     
> 27          6.0676470000  0.2247276666
> org-agenda-get-scheduled                                       
> 24          1.8954390000  0.0789766250
> org-agenda-get-deadlines                                       
> 24          1.848125      0.0770052083
> org-finalize-agenda                                            
> 1           1.682567      1.682567
> org-get-tags-at                                                
> 739         1.5204500000  0.0020574424
> org-agenda-to-appt                                             
> 1           1.478704      1.478704
> org-end-of-subtree                                             
> 3021        1.369184      0.0004532221
> org-up-heading-safe                                            
> 2959        1.3089300000  0.0004423555
> org-agenda-get-todos                                           
> 3           1.204345      0.4014483333
> org-format-agenda-item                                         
> 678         1.0977590000  0.0016191135
> org-finalize-agenda-entries                                    
> 8           1.002133      0.125266625
> org-back-to-heading                                            
> 8152        0.7544939999  9.255...e-05
> org-agenda-get-restriction-and-command                         
> 1           0.731547      0.731547
> org-agenda-get-timestamps                                      
> 24          0.6970960000  0.0290456666
> org-agenda-highlight-todo                                      
> 512         0.5082190000  0.0009926152
> org-get-effort                                                 
> 667         0.4587000000  0.0006877061
> org-prepare-agenda-buffers                                     
> 2           0.448168      0.224084
> org-prepare-agenda                                             
> 1           0.375422      0.375422
> org-entry-get                                                  
> 667         0.3152920000  0.0004727016
> org-agenda-get-sexps                                           
> 21          0.3122680000  0.0148699047
> org-get-property-block                                         
> 667         0.3088189999  0.0004629970
> org-time-string-to-absolute                                    
> 2455        0.2245600000  9.147...e-05
> org-get-entries-from-diary                                     
> 7           0.2179910000  0.0311415714
> org-agenda-align-tags                                          
> 1           0.196897      0.196897
> org-add-props                                                  
> 1928        0.1870930000  9.703...e-05
> org-get-priority                                               
> 665         0.1791409999  0.0002693849
> org-parse-time-string                                          
> 2599        0.1669620000  6.424...e-05
> org-agenda-skip                                                
> 5746        0.1608899999  2.800...e-05
> org-closest-date                                               
> 519         0.1604959999  0.0003092408
> org-get-todo-state                                             
> 766         0.148052      0.0001932793
> org-date-to-gregorian                                          
> 1039        0.14695       0.0001414340
> org-trim                                                       
> 578         0.1219580000  0.0002110000
> org-agenda-get-blocks                                          
> 24          0.1055319999  0.0043971666
> org-outline-level                                              
> 8200        0.0868150000  1.058...e-05
> org-at-date-range-p                                            
> 490         0.0674459999  0.0001376448
> org-fit-window-to-buffer                                       
> 2           0.0491700000  0.0245850000
> org-fit-agenda-window                                          
> 1           0.047655      0.047655
> org-on-heading-p                                               
> 502         0.0472360000  9.409...e-05
> org-refresh-category-properties                                
> 6           0.044592      0.007432
> org-entries-lessp                                              
> 2350        0.0303510000  1.291...e-05
> org-agenda-add-inherited-tags                                  
> 678         0.0143810000  2.121...e-05
> org-diary-sexp-entry                                           
> 413         0.0117370000  2.841...e-05
> org-split-string                                               
> 2007        0.0101030000  5.033...e-06
> org-agenda-new-marker                                          
> 1100        0.0094529999  8.593...e-06
> org-downcase-keep-props                                        
> 2741        0.0074950000  2.734...e-06
> org-calendar-holiday                                           
> 7           0.005071      0.0007244285
> org-add-prop-inherited                                         
> 2613        0.0044160000  1.690...e-06
> org-get-time-of-day                                            
> 158         0.0034779999  2.201...e-05
> org-fontify-priorities                                         
> 1           0.003422      0.003422
> org-activate-bracket-links                                     
> 28          0.003122      0.0001115000
> org-time-string-to-time                                        
> 144         0.0031109999  2.160...e-05
> org-get-wdays                                                  
> 688         0.0029170000  4.239...e-06
> org-remove-uniherited-tags                                     
> 2549        0.0029120000  1.142...e-06
> org-check-agenda-file                                          
> 30          0.002788      9.293...e-05
> org-get-category                                               
> 768         0.0016760000  2.182...e-06
> org-get-agenda-file-buffer                                     
> 33          0.001566      4.745...e-05
> org-find-base-buffer-visiting                                  
> 33          0.0013430000  4.069...e-05
> org-agenda-add-time-grid-maybe                                 
> 7           0.0011580000  0.0001654285
> org-agenda-mode                                                
> 1           0.001007      0.001007
> org-agenda-todayp                                              
> 48          0.000894      1.862...e-05
> org-get-todo-face                                              
> 444         0.0008830000  1.988...e-06
> org-before-change-function                                     
> 518         0.0008730000  1.685...e-06
> org-agenda-files                                               
> 4           0.000864      0.000216
> org-agenda-cleanup-fancy-diary                                 
> 7           0.000662      9.457...e-05
> org-modify-diary-entry-string                                  
> 11          0.0005960000  5.418...e-05
> org-diary-default-entry                                        
> 7           0.000533      7.614...e-05
> org-agenda-check-for-timestamp-as-reason-to-ignore-todo-item   
> 342         0.0005210000  1.523...e-06
> org-add-to-diary-list                                          
> 7           0.000486      6.942...e-05
> org-agenda-deadline-face                                       
> 113         0.0004459999  3.946...e-06
> org-agenda-format-date-aligned                                 
> 7           0.000435      6.214...e-05
> org-agenda-reset-markers                                       
> 1           0.000356      0.000356
> org-uniquify                                                   
> 6           0.000353      5.883...e-05
> org-remove-flyspell-overlays-in                                
> 29          0.0002899999  9.999...e-06
> org-days-to-iso-week                                           
> 9           0.0002069999  2.299...e-05
> org-switch-to-buffer-other-window                              
> 1           0.000192      0.000192
> org-make-overlay                                               
> 42          0.0001350000  3.214...e-06
> org-overlay-put                                                
> 84          0.0001129999  1.345...e-06
> org-activate-tags                                              
> 3           7.199...e-05  2.399...e-05
> org-activate-dates                                             
> 4           7e-05         1.75e-05
> org-compile-prefix-format                                      
> 1           6.8e-05       6.8e-05
> org-do-emphasis-faces                                          
> 2           6.500...e-05  3.250...e-05
> org-overlay-get                                                
> 43          6.399...e-05  1.488...e-06
> org-delete-overlay                                             
> 42          5.899...e-05  1.404...e-06
> org-unfontify-region                                           
> 2           5.099...e-05  2.549...e-05
> org-activate-footnote-links                                    
> 2           4.499...e-05  2.249...e-05
> org-activate-plain-links                                       
> 2           3.5e-05       1.75e-05
> org-overlays-in                                                
> 1           2.3e-05       2.3e-05
> org-activate-angle-links                                       
> 2           2.2e-05       1.1e-05
> org-activate-code                                              
> 2           1.7e-05       8.5e-06
> org-get-level-face                                             
> 6           1.6e-05       2.666...e-06
> org-file-menu-entry                                            
> 3           1.499...e-05  4.999...e-06
> org-agenda-set-mode-name                                       
> 1           1.4e-05       1.4e-05
> org-add-hook                                                   
> 2           1.300...e-05  6.500...e-06
> org-agenda-post-command-hook                                   
> 3           1.2e-05       4e-06
> org-hide-wide-columns                                          
> 2           1.1e-05       5.5e-06
> org-unhighlight                                                
> 3           1.1e-05       3.666...e-06
> org-font-lock-add-tag-faces                                    
> 3           5.999...e-06  2e-06
> org-agenda-ndays-to-span                                       
> 2           4.999...e-06  2.499...e-06
> org-region-active-p                                            
> 1           4e-06         4e-06
> org-font-lock-hook                                             
> 2           4e-06         2e-06
> org-do-latex-and-special-faces                                 
> 2           3e-06         1.5e-06
> org-release-buffers                                            
> 1           3e-06         3e-06
> org-set-sorting-strategy                                       
> 1           2e-06         2e-06
> org-activate-target-links                                      
> 2           2e-06         1e-06
>
>
> 2009/8/31 Leo <sdl.web@gmail.com>
> On 2009-08-31 22:03 +0100, Daniel Martins wrote:
> > I did all but it complains about a org-agenda-list: Symbol's  
> function
> > definition is void: elp-wrapper
> >
> > Daniel
>
> Maybe put (autoload 'elp-wrapper "elp") somewhere in your .emacs. This
> will get your org mode to compile.
>
> But you may want to figure out where that elp-wrapper is used. The
> vanilla org mode does not seem to use it.
>
> --
> Emacs uptime: 14 days, 6 hours, 51 minutes, 8 seconds
>
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>
>

^ permalink raw reply	[flat|nested] 41+ messages in thread

end of thread, other threads:[~2009-09-02  7:15 UTC | newest]

Thread overview: 41+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-23 16:38 org-mode on sloooow computer Eric S Fraga
2009-04-23 19:15 ` Sven Bretfeld
2009-04-23 20:30   ` Carsten Dominik
2009-04-24  9:22     ` Eric S Fraga
2009-04-24  9:42       ` Carsten Dominik
2009-04-24  9:51         ` Eric S Fraga, Eric S Fraga
2009-04-24 10:25         ` Eric S Fraga
2009-04-24 11:35           ` Carsten Dominik
2009-04-24 12:51             ` Matthew Lundin
2009-04-24 15:27             ` Leo
2009-04-24 15:57               ` Nick Dokos
2009-04-24 16:22                 ` Leo
2009-04-25  4:06     ` Samuel Wales
2009-04-23 20:26 ` Carsten Dominik
2009-04-23 22:10   ` Eric S Fraga, Eric S Fraga
2009-04-24  5:03     ` Carsten Dominik
2009-04-24  8:24       ` Eric S Fraga, Eric S Fraga
2009-04-24  9:01         ` Carsten Dominik
2009-04-24 13:37           ` Rainer Stengele
2009-04-24 13:49             ` Carsten Dominik
2009-04-24 15:47               ` Eric S Fraga, Eric S Fraga
2009-04-24 18:25                 ` Carsten Dominik
2009-04-24 22:26                   ` Eric S Fraga, Eric S Fraga
2009-04-25  3:51                     ` Carsten Dominik
2009-04-25  8:19                       ` Eric S Fraga, Eric S Fraga
2009-04-25 16:25                         ` Bernt Hansen
2009-04-30 14:13                           ` Carsten Dominik
2009-04-24 14:47             ` Carsten Dominik
2009-04-28 10:33               ` Rainer Stengele
2009-04-30 14:14                 ` Carsten Dominik
2009-08-31 17:49                   ` Daniel Martins
2009-08-31 18:02                     ` Leo
2009-08-31 18:12                       ` Daniel Martins
2009-08-31 18:41                         ` Matt Lundin
2009-08-31 21:03                           ` Daniel Martins
2009-08-31 21:11                             ` Leo
2009-08-31 21:25                               ` Daniel Martins
2009-09-01  4:20                                 ` Carsten Dominik
2009-09-01 13:15                                   ` Daniel Martins
2009-09-02  7:15                                     ` Carsten Dominik
2009-08-31 18:14                     ` Matt Lundin

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).