"Ottaway, Jim" <[email protected]> was heard to say:

> You could try profiling the planner package to see what is taking up all
> of that time:
>

Hi Jim,

thanks for making me aware of these profiling commands. This is just  
what I was looking for.

The results are a bit strange though. Planner itself barely takes a  
couple of seconds. Therefore I also instrumented the muse package,  
which does the publishing after all. This is what I get (only the top  
35 or so entries are shown here):

muse-publish-markup-region                       4           880.836    
     220.209
muse-publish-markup                              16          880.82     
     55.05125
muse-project-publish-default                     1           444.809    
     444.809
muse-project-publish                             1           444.809    
     444.809
muse-project-publish-file                        979         444.433    
     0.4539662921
muse-project-publish-file-default                979         443.916    
     0.4534382022
muse-publish-file                                979          
443.46500000  0.4529775280
muse-publish-markup-buffer                       3           441.934    
     147.31133333
muse-publish-markup-link                         985          
440.15099999  0.4468538071
muse-publish-insert-url                          985          
440.07399999  0.4467756345
muse-publish-url                                 985          
440.01299999  0.4467137055
muse-publish-markup-tag                          96          439.84     
     4.5816666666
muse-publish-classify-url                        985          
439.54599999  0.4462395939
muse-project-link-page                           985          
439.48399999  0.4461766497
muse-publish-mark-up-tag                         1           438.902    
     438.902
muse-project-file-alist                          988          
438.41499999  0.4437398785
muse-project-file-entries                        988          
438.38299999  0.4437074898
muse-project-page-file                           985          
437.97699999  0.4446467005
muse-page-name                                   968252       
39.713999999  4.10...e-005
muse-style-element                               102748      2.053      
     1.99...e-005
muse-project-applicable-styles                   1964         
1.1910000000  0.0006064154
muse-find-markup-element                         13277        
0.9800000000  7.38...e-005
planner-update-task                              1           0.938      
     0.938
planner-index-as-string                          1           0.938      
     0.938
planner-update-task-basic                        1           0.938      
     0.938
planner-lower-task-priority                      1           0.938      
     0.938
muse-publish-lisp-tag                            28          0.938      
     0.0334999999
muse-eval-lisp                                   28          0.938      
     0.0334999999
muse-project-resolve-link                        985          
0.7230000000  0.0007340101
muse-collect-alist                               985          
0.7180000000  0.0007289340
planner-find-file                                1           0.469      
     0.469
planner-jump-to-linked-task-basic                1           0.469      
     0.469
planner-save-buffers                             1           0.469      
     0.469
planner-jump-to-linked-task                      1           0.469      
     0.469
muse-index-as-string                             1           0.469      
     0.469
planner-list-daily-files                         1           0.453      
     0.453
planner-file-alist                               1           0.453      
     0.453

What intrigues me is that a bunch of muse publishing functions like  
muse-project-publish-file are called 979 times, which is the number of  
muse files in my project. That is, muse spends approx. 7 minutes in  
files which don't need to be published at all. If I look at the  
timestamps in my output directory, I can verify that muse updates only  
those files which were actually modified, e.g. two files in the test  
shown above. Is this some problem of my particular setup, or is  
planner/muse supposed to work this way?

I'll appreciate any hints how to speed this up. 'Course I'll be happy  
to provide further debug information if needed.

regards,
Markus


-- 
Markus Hoenicka
http://www.mhoenicka.de
AQ score 38



_______________________________________________
Planner-el-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/planner-el-discuss

Reply via email to