Re: [Orgmode] Re: org-mode on sloooow computer

2009-09-02 Thread Carsten Dominik

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 
168311.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 
295021.033886999  0.0071301311
org-agenda-get-scheduled   
24  9.637174  0.4015489166
org-finalize-agenda
1   7.912788  7.912788
org-agenda-to-appt

[Orgmode] Re: org-mode on sloooow computer

2009-08-31 Thread Matt Lundin
Daniel Martins daniel...@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



___
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


Re: [Orgmode] Re: org-mode on sloooow computer

2009-08-31 Thread Daniel Martins
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@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

___
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


[Orgmode] Re: org-mode on sloooow computer

2009-08-31 Thread Leo
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


Re: [Orgmode] Re: org-mode on sloooow computer

2009-08-31 Thread Daniel Martins
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-agenda1
8.954259  8.954259
org-agenda-list   1
8.222621  8.222621
org-agenda-get-day-entries27
6.067647  0.224727
org-agenda-get-scheduled  24
1.895439  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.520450  0.0020574424
org-agenda-to-appt1
1.478704  1.478704
org-end-of-subtree3021
1.369184  0.0004532221
org-up-heading-safe   2959
1.308930  0.0004423555
org-agenda-get-todos  3
1.204345  0.401448
org-format-agenda-item678
1.097759  0.0016191135
org-finalize-agenda-entries   8
1.002133  0.125266625
org-back-to-heading   8152
0.754493  9.255...e-05
org-agenda-get-restriction-and-command1
0.731547  0.731547
org-agenda-get-timestamps 24
0.697096  0.029045
org-agenda-highlight-todo 512
0.508219  0.0009926152
org-get-effort667
0.458700  0.0006877061
org-prepare-agenda-buffers2
0.448168  0.224084
org-prepare-agenda1
0.375422  0.375422
org-entry-get 667
0.315292  0.0004727016
org-agenda-get-sexps  21
0.312268  0.0148699047
org-get-property-block667
0.308818  0.0004629970
org-time-string-to-absolute   2455
0.224560  9.147...e-05
org-get-entries-from-diary7
0.217991  0.0311415714
org-agenda-align-tags 1
0.196897  0.196897
org-add-props 1928
0.187093  9.703...e-05
org-get-priority  665
0.179140  0.0002693849
org-parse-time-string 2599
0.166962  6.424...e-05
org-agenda-skip   5746
0.160889  2.800...e-05
org-closest-date  519
0.160495  0.0003092408
org-get-todo-state766
0.148052  0.0001932793
org-date-to-gregorian 1039
0.14695   0.0001414340
org-trim  578
0.121958  0.000211
org-agenda-get-blocks 24
0.105531  0.0043971666
org-outline-level 8200
0.086815  1.058...e-05
org-at-date-range-p   490
0.067445  0.0001376448
org-fit-window-to-buffer  2
0.049170  0.024585
org-fit-agenda-window 1
0.047655  0.047655
org-on-heading-p  502
0.047236  9.409...e-05
org-refresh-category-properties   6
0.044592  0.007432
org-entries-lessp 2350
0.030351  1.291...e-05
org-agenda-add-inherited-tags 678
0.014381  2.121...e-05
org-diary-sexp-entry  413
0.011737  2.841...e-05
org-split-string  2007
0.010103  5.033...e-06
org-agenda-new-marker 1100
0.009452  8.593...e-06
org-downcase-keep-props   2741
0.007495  2.734...e-06
org-calendar-holiday  7
0.005071  0.0007244285
org-add-prop-inherited2613
0.004416  1.690...e-06
org-get-time-of-day   158
0.003477  2.201...e-05
org-fontify-priorities

[Orgmode] Re: org-mode on sloooow computer

2009-05-03 Thread Carsten Dominik


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


Eric S Fraga ucec...@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



___
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


[Orgmode] Re: org-mode on sloooow computer

2009-05-03 Thread Carsten Dominik


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.39  0.695000
org-agenda-list
1   1.281000  1.281000
org-agenda-get-day-entries 
12  1.202 0.100166
org-agenda-get-scheduled   
10  0.796999  0.0797
org-end-of-subtree 
15330.44  0.0002870189
org-time-string-to-absolute
16350.236000  0.0001443425
org-prepare-agenda 
3   0.218999  0.073
org-prepare-agenda-buffers 
1   0.202999  0.202999
org-parse-time-string  
18050.188 0.0001041551
org-agenda-get-timestamps  
10  0.14  0.014000
org-todo-list  
1   0.109 0.109
org-agenda-get-deadlines   
10  0.094 0.0094
org-closest-date   
240 0.094 0.000391
org-back-to-heading
22060.094 4.26...e-005
org-finalize-agenda
3   0.094 0.031333
org-let
1   0.094 0.094
org-outline-level  
15330.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
32200.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.047000  0.023500
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.000430
org-entry-get  
72  0.031 0.000430
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.000106
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.000208




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 ;)

[Orgmode] Re: org-mode on sloooow computer

2009-04-28 Thread Rainer Stengele
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-agenda1   1.703 
1.703
org-let2  2   
1.39  0.695000
org-agenda-list   1   
1.281000  1.281000
org-agenda-get-day-entries12  1.202 
0.100166
org-agenda-get-scheduled  10  
0.796999  0.0797
org-end-of-subtree1533
0.44  0.0002870189
org-time-string-to-absolute   1635
0.236000  0.0001443425
org-prepare-agenda3   
0.218999  0.073
org-prepare-agenda-buffers1   
0.202999  0.202999
org-parse-time-string 18050.188 
0.0001041551
org-agenda-get-timestamps 10  0.14  
0.014000
org-todo-list 1   0.109 
0.109
org-agenda-get-deadlines  10  0.094 
0.0094
org-closest-date  240 0.094 
0.000391
org-back-to-heading   22060.094 
4.26...e-005
org-finalize-agenda   3   0.094 
0.031333
org-let   1   0.094 
0.094
org-outline-level 15330.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-diary5   0.063 
0.0126
org-agenda-skip   32200.063 
1.95...e-005
org-agenda-skip-if167 0.063 
0.0003772455
org-agenda-skip-entry-if  167 0.063 
0.0003772455
org-refresh-category-properties   2   
0.047000  0.023500
org-get-todo-state335 0.047 
0.0001402985
org-agenda-get-blocks 10  0.046 
0.0046
org-agenda-files  4   0.032 
0.008
org-get-effort72  0.031 
0.000430
org-entry-get 72  0.031 
0.000430
org-format-agenda-item74  0.031 
0.0004189189
org-at-date-range-p   219 0.031 
0.0001415525
org-get-wdays 150 0.016 
0.000106
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-block72  0.015 
0.000208



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 

[Orgmode] Re: org-mode on sloooow computer

2009-04-25 Thread Eric S Fraga
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 


___
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


[Orgmode] Re: org-mode on sloooow computer

2009-04-25 Thread Bernt Hansen
Eric S Fraga ucec...@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


___
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


[Orgmode] Re: org-mode on sloooow computer

2009-04-24 Thread Eric S Fraga
Carsten Dominik carsten.domi...@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-list1   4.116562  4.116562
| org-agenda-get-day-entries 6   3.497896  0.582982
| org-get-tags-at106 3.264206  0.0307944056
| org-up-heading-all 247 3.217603  0.0130267368
| org-agenda-get-scheduled   6   2.660075  0.4433458333
| org-outline-level  20216   1.495495  7.397...e-05
| org-agenda-get-deadlines   6   0.732624  0.122104
| org-dblock-write:clocktable7   0.549022  0.0784317142
| org-get-clocktable 1   0.395574  0.395574
| org-update-dblock  1   0.357156  0.357156
| org-prepare-agenda-buffers 2   0.272433  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-properties12  0.082294  0.0068578333
| org-agenda-get-timestamps  6   0.054994  0.0091658333
| org-get-agenda-file-buffer 18  0.047752  0.002652
| org-find-base-buffer-visiting  18  0.047059  0.002614
| org-get-entries-from-diary 1   0.040401  0.040401
| org-get-todo-state 107 0.031544  0.0002948130
| org-back-to-heading232 0.029236  0.0001260172
| org-time-string-to-absolute111 0.025061  0.0002257837
| org-end-of-subtree 11  0.024123  0.0021930909
| org-agenda-get-blocks  6   0.017011  0.0028351666
| org-parse-time-string  215 0.016269  7.566...e-05
| org-agenda-get-sexps   6   0.013474  0.0022458333
| org-agenda-files   6   0.012667  0.002666
| 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.007977  0.0009972499
| org-format-agenda-item 8   0.006947  0.0008684999
| org-agenda-skip121 0.006809  5.627...e-05
| org-finalize-agenda-entries1   0.006645  0.006645
| org-install-agenda-files-menu  1   0.003953  0.003953
| org-finalize-agenda1   0.003672  0.003672
| org-get-effort 8   0.003324  0.0004155
| org-agenda-mode1   0.003274  0.003274
| org-entry-get  8   0.003146  0.0003933749
| org-agenda-highlight-todo  8   0.003116  0.0003895000
| org-table-align1   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.002185  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.001523  0.000126
| org-set-startup-visibility 1   0.001405  0.001405
| org-get-category   107 0.001267  1.184...e-05
| org-closest-date   4   0.001067  0.00026675
| org-cycle  1   0.00104   0.00104
| org-add-props  21  0.000906  4.319...e-05
| org-time-string-to-time6   0.000892  0.000148
| org-prepare-dblock 1   0.000882  0.000882
| org-remove-uniherited-tags 149   

Re: [Orgmode] Re: org-mode on sloooow computer

2009-04-24 Thread Carsten Dominik

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.domi...@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-list1   4.116562   
4.116562
| org-agenda-get-day-entries 6   3.497896   
0.582982
| org-get-tags-at106 3.264206   
0.0307944056
| org-up-heading-all 247 3.217603   
0.0130267368
| org-agenda-get-scheduled   6   2.660075   
0.4433458333
| org-outline-level  20216   1.495495   
7.397...e-05
| org-agenda-get-deadlines   6   0.732624   
0.122104
| org-dblock-write:clocktable7   0.549022   
0.0784317142
| org-get-clocktable 1   0.395574   
0.395574
| org-update-dblock  1   0.357156   
0.357156
| org-prepare-agenda-buffers 2   0.272433   
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-properties12  0.082294   
0.0068578333
| org-agenda-get-timestamps  6   0.054994   
0.0091658333
| org-get-agenda-file-buffer 18  0.047752   
0.002652
| org-find-base-buffer-visiting  18  0.047059   
0.002614
| org-get-entries-from-diary 1   0.040401   
0.040401
| org-get-todo-state 107 0.031544   
0.0002948130
| org-back-to-heading232 0.029236   
0.0001260172
| org-time-string-to-absolute111 0.025061   
0.0002257837
| org-end-of-subtree 11  0.024123   
0.0021930909
| org-agenda-get-blocks  6   0.017011   
0.0028351666
| org-parse-time-string  215 0.016269   
7.566...e-05
| org-agenda-get-sexps   6   0.013474   
0.0022458333
| org-agenda-files   6   0.012667   
0.002666
| 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.007977   
0.0009972499
| org-format-agenda-item 8   0.006947   
0.0008684999
| org-agenda-skip121 0.006809   
5.627...e-05
| org-finalize-agenda-entries1   0.006645   
0.006645
| org-install-agenda-files-menu  1   0.003953   
0.003953
| org-finalize-agenda1   0.003672   
0.003672
| org-get-effort 8   0.003324   
0.0004155
| org-agenda-mode1   0.003274   
0.003274
| org-entry-get  8   0.003146   
0.0003933749
| org-agenda-highlight-todo  8   0.003116   
0.0003895000
| org-table-align1   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.002185   
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  

Re: [Orgmode] Re: org-mode on sloooow computer

2009-04-24 Thread Eric S Fraga
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.


___
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


[Orgmode] Re: org-mode on sloooow computer

2009-04-24 Thread Eric S Fraga
Carsten Dominik carsten.domi...@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-list1   1.754133  1.754133
org-agenda-get-day-entries 6   1.106589  0.1844315
org-agenda-get-scheduled   6   0.594791  0.0991318333
org-get-tags-at106 0.580281  0.0054743584
org-dblock-write:clocktable7   0.572584  0.0817977142
org-up-heading-safe247 0.541900  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.351312  0.019517
org-find-base-buffer-visiting  18  0.350603  0.0194779444
org-agenda-get-restriction-and-command 1   0.320559  0.320559
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.022320
org-refresh-category-properties12  0.082914  0.0069095
org-get-entries-from-diary 1   0.042627  0.042627
org-back-to-heading479 0.038750  8.089...e-05
org-agenda-get-timestamps  6   0.034261  0.0057101666
org-get-todo-state 107 0.031152  0.0002911401
org-time-string-to-absolute111 0.025068  0.0002258378
org-end-of-subtree 11  0.023868  0.0021698181
org-agenda-files   6   0.018080  0.003013
org-agenda-get-blocks  6   0.017015  0.0028358333
org-parse-time-string  215 0.016532  7.689...e-05
org-agenda-get-sexps   6   0.013272  0.002212
org-fit-window-to-buffer   2   0.013012  0.006506
org-outline-level  518 0.010418  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-entries1   0.006866  0.006866
org-format-agenda-item 8   0.006833  0.0008541250
org-agenda-skip121 0.006678  5.519...e-05
org-agenda-mode1   0.003775  0.003775
org-install-agenda-files-menu  1   0.003731  0.003731
org-finalize-agenda1   0.003599  0.003599
org-agenda-highlight-todo  8   0.003320  0.0004151249
org-get-effort 8   0.00324   0.000405
org-entry-get  8   0.003078  0.00038475
org-table-align1   0.003061  0.003061
org-get-property-block 8   0.002679  0.000334
org-agenda-align-tags  1   0.002598  0.002598
org-create-dblock  1   0.002287  0.002287
org-split-string   74  0.002134  2.883...e-05
org-entries-lessp  16  0.002098  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.001325  1.238...e-05
org-add-props  21  0.001039  4.947...e-05
org-cycle  1   0.001006  0.001006
org-closest-date   4   0.001002  0.0002505
org-time-string-to-time6   0.000926  0.000154
org-set-regexps-and-options1   0.00086   0.00086
org-at-date-range-p8   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.000764  3.824...e-05
org-remove-uniherited-tags 149   

Re: [Orgmode] Re: org-mode on sloooow computer

2009-04-24 Thread Carsten Dominik


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




___
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


Re: [Orgmode] Re: org-mode on sloooow computer

2009-04-24 Thread Matthew Lundin
Carsten Dominik carsten.domi...@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


___
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


[Orgmode] Re: org-mode on sloooow computer

2009-04-24 Thread Rainer Stengele
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-agenda1   
1.797 1.797
| org-let2  2   
1.422 0.711
| org-agenda-get-day-entries12  
1.248 0.104
| org-agenda-list   1   
1.234999  1.234999
| org-agenda-get-scheduled  10  
0.797999  0.0798
| org-end-of-subtree1533
0.643000  0.0004194390
| org-prepare-agenda3   
0.359 0.119666
| org-prepare-agenda-buffers1   
0.25  0.25
| org-back-to-heading   2198
0.188000  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-diary5   
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-if167 
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-state333 
0.031 9.30...e-005
| org-finalize-agenda   3   
0.016 0.005333
| 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-overlay65  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-effort69  0.0 
  0.0
| org-downcase-keep-props   41  0.0 
  0.0
| org-get-agenda-file-buffer14  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-diary5   0.0 
  0.0
| org-get-wdays 150 0.0 
  0.0
| org-parse-time-string 17970.0 
  0.0
| org-entries-lessp 215 0.0 
  

[Orgmode] Re: org-mode on sloooow computer

2009-04-24 Thread Carsten Dominik


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.234999  1.234999
| org-agenda-get-scheduled   
10  0.797999  0.0798
| org-end-of-subtree 
15330.643000  0.0004194390
| org-prepare-agenda 
3   0.359 0.119666
| org-prepare-agenda-buffers 
1   0.25  0.25
| org-back-to-heading
21980.188000  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  
53760.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.005333
| org-time-string-to-absolute
16270.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
32130.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

[Orgmode] Re: org-mode on sloooow computer

2009-04-24 Thread Carsten Dominik
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.234999  1.234999
| org-agenda-get-scheduled   
10  0.797999  0.0798
| org-end-of-subtree 
15330.643000  0.0004194390
| org-prepare-agenda 
3   0.359 0.119666
| org-prepare-agenda-buffers 
1   0.25  0.25
| org-back-to-heading
21980.188000  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  
53760.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.005333
| org-time-string-to-absolute
16270.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
32130.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   

[Orgmode] Re: org-mode on sloooow computer

2009-04-24 Thread Leo
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 :.



___
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


[Orgmode] Re: org-mode on sloooow computer

2009-04-24 Thread Leo
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 :.



___
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


Re: [Orgmode] Re: org-mode on sloooow computer

2009-04-24 Thread Nick Dokos
Leo sdl@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





___
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


[Orgmode] Re: org-mode on sloooow computer

2009-04-24 Thread Eric S Fraga
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.domi...@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-list1   1.082066  1.082066
org-dblock-write:clocktable7   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-at8   0.223889  0.0279862499
org-up-heading-all 21  0.220187  0.0104851428
...

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


[Orgmode] Re: org-mode on sloooow computer

2009-04-24 Thread Carsten Dominik


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.domi...@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-list1   1.082066   
1.082066
org-dblock-write:clocktable7   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-at8   0.223889   
0.0279862499
org-up-heading-all 21  0.220187   
0.0104851428

...

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


[Orgmode] Re: org-mode on sloooow computer

2009-04-24 Thread Eric S Fraga
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-list1   0.889913  0.889913
org-dblock-write:clocktable7   0.586827  0.0838324285
org-get-clocktable 1   0.427968  0.427968
org-update-dblock  1   0.390233  0.390233
org-prepare-agenda-buffers 2   0.267907  0.1339535
org-agenda-get-day-entries 6   0.255334  0.042555
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-properties12  0.083083  0.006923
org-get-tags-at8   0.059022  0.00737775
org-up-heading-safe21  0.056052  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-list1   0.739349  0.739349
org-finalize-agenda-entries1   0.286326  0.286326
org-agenda-highlight-todo  8   0.282616  0.035327
org-agenda-get-day-entries 6   0.257445  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.128321  0.128321
org-prepare-agenda-buffers 1   0.120287  0.120287
org-get-tags-at8   0.059197  0.007399625
org-up-heading-safe21  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 


___
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


[Orgmode] Re: org-mode on sloooow computer

2009-04-24 Thread Carsten Dominik


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-list1   0.889913   
0.889913
org-dblock-write:clocktable7   0.586827   
0.0838324285
org-get-clocktable 1   0.427968   
0.427968
org-update-dblock  1   0.390233   
0.390233
org-prepare-agenda-buffers 2   0.267907   
0.1339535
org-agenda-get-day-entries 6   0.255334   
0.042555
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-properties12  0.083083   
0.006923
org-get-tags-at8   0.059022   
0.00737775
org-up-heading-safe21  0.056052   
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-list1   0.739349   
0.739349
org-finalize-agenda-entries1   0.286326   
0.286326
org-agenda-highlight-todo  8   0.282616   
0.035327
org-agenda-get-day-entries 6   0.257445   
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.128321   
0.128321
org-prepare-agenda-buffers 1   0.120287   
0.120287
org-get-tags-at8   0.059197   
0.007399625
org-up-heading-safe21  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


___
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