emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <carsten.dominik@gmail.com>
To: "Sébastien Vauban" <wxhgmqzgwmuf@spammotel.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Huge performance problems to open some Org files
Date: Fri, 17 Dec 2010 13:29:56 +0100	[thread overview]
Message-ID: <1C972FF9-236E-45EC-9885-EE69656F0769@gmail.com> (raw)
In-Reply-To: <8062uswyie.fsf@missioncriticalit.com>

Hi Sebastien,

it seems clear that it is not orgmode that causes the
delays in its own functions.

One way to find out what is goin on is this:

Turn on debug-on-quite.

The, when in this slow loading process, press C-g at random times and  
see
look at the functions in the backtrace.  Instrument these functions or  
better packages with epl as well and iterate until you find which  
functions eat up the time.

vc- stuff version control may be one likely offender.

- Carsten

On Dec 17, 2010, at 10:15 AM, Sébastien Vauban wrote:

> Hello,
>
> I've real performance problems for opening some Org files. Just some,
> hopefully. I don't remember having those problems when I was on  
> Ubuntu, and I
> must already have opened it, back then, but... Anyway, I'm now  
> (forced) on
> Windows, and I have the problem.
>
> For example[fn:1], the small attached file takes me at least 6 s for  
> opening it!
> I really have no idea why. Why is it different from others, longer,  
> that are
> opened in a much shorter time?
>
> What did I do to try to spot the problem?
>
>    M-x elp-instrument-package RET org- RET
>    M-x find-file <FILE> RET
>    M-x elp-results.
>
> Here they are:
>
> #+begin_src emacs-lisp
> org-mode                                                       
> 1           6.719         6.719
> org-set-regexps-and-options                                    
> 1           0.203         0.203
> org-compute-latex-and-specials-regexp                          
> 1           0.203         0.203
> org-match-string-no-properties                                 
> 35          0.016         0.0004571428
> org-infile-export-plist                                        
> 2           0.016         0.008
> org-all-targets                                                
> 1           0.0           0.0
> org-mode-p                                                     
> 13          0.0           0.0
> org-babel-result-hide-spec                                     
> 1           0.0           0.0
> org-inlinetask-fontify                                         
> 2           0.0           0.0
> org-bookmark-jump-unhide                                       
> 1           0.0           0.0
> org-cycle                                                      
> 1           0.0           0.0
> org-unfontify-region                                           
> 2           0.0           0.0
> org-agenda-files                                               
> 1           0.0           0.0
> org-raise-scripts                                              
> 2           0.0           0.0
> org-activate-dates                                             
> 2           0.0           0.0
> org-point-at-end-of-empty-headline                             
> 1           0.0           0.0
> org-load-modules-maybe                                         
> 2           0.0           0.0
> org-get-indentation                                            
> 1           0.0           0.0
> org-remove-font-lock-display-properties                        
> 2           0.0           0.0
> org-mode-flyspell-verify                                       
> 1           0.0           0.0
> org-clocking-p                                                 
> 1           0.0           0.0
> org-activate-footnote-links                                    
> 2           0.0           0.0
> org-at-item-checkbox-p                                         
> 1           0.0           0.0
> org-propertize                                                 
> 4           0.0           0.0
> org-babel-do-key-sequence-in-edit-buffer                       
> 1           0.0           0.0
> org-set-startup-visibility                                     
> 1           0.0           0.0
> org-overview                                                   
> 1           0.0           0.0
> org-resolve-clocks-if-idle                                     
> 1           0.0           0.0
> org-decompose-region                                           
> 2           0.0           0.0
> org-make-options-regexp                                        
> 3           0.0           0.0
> org-update-radio-target-regexp                                 
> 1           0.0           0.0
> org-font-lock-add-priority-faces                               
> 2           0.0           0.0
> org-assign-fast-keys                                           
> 1           0.0           0.0
> org-extract-log-state-settings                                 
> 16          0.0           0.0
> org-install-agenda-files-menu                                  
> 1           0.0           0.0
> org-babel-where-is-src-block-head                              
> 1           0.0           0.0
> org-do-latex-and-special-faces                                 
> 2           0.0           0.0
> org-cycle-internal-global                                      
> 1           0.0           0.0
> org-do-emphasis-faces                                          
> 2           0.0           0.0
> org-link-display-format                                        
> 3           0.0           0.0
> org-src-native-tab-command-maybe                               
> 1           0.0           0.0
> org-fontify-entities                                           
> 2           0.0           0.0
> org-file-menu-entry                                            
> 32          0.0           0.0
> org-set-visibility-according-to-property                       
> 1           0.0           0.0
> org-activate-bracket-links                                     
> 2           0.0           0.0
> org-hide-archived-subtrees                                     
> 1           0.0           0.0
> org-imenu-new-marker                                           
> 3           0.0           0.0
> org-delete-all                                                 
> 1           0.0           0.0
> org-add-props                                                  
> 3           0.0           0.0
> org-cycle-hide-drawers                                         
> 2           0.0           0.0
> org-clocking-buffer                                            
> 1           0.0           0.0
> org-hh:mm-string-to-minutes                                    
> 2           0.0           0.0
> org-combine-plists                                             
> 1           0.0           0.0
> org-cycle-item-indentation                                     
> 1           0.0           0.0
> org-clock-notify-once-if-expired                               
> 1           0.0           0.0
> org-optimize-window-after-visibility-change                    
> 1           0.0           0.0
> org-list-at-regexp-after-bullet-p                              
> 2           0.0           0.0
> org-set-font-lock-defaults                                     
> 1           0.0           0.0
> org-make-target-link-regexp                                    
> 1           0.0           0.0
> org-cycle-level                                                
> 1           0.0           0.0
> org-fontify-meta-lines-and-blocks                              
> 10          0.0           0.0
> org-babel-hide-result-toggle-maybe                             
> 1           0.0           0.0
> org-float-time                                                 
> 4           0.0           0.0
> org-activate-angle-links                                       
> 2           0.0           0.0
> org-hide-block-toggle-maybe                                    
> 1           0.0           0.0
> org-clock-load                                                 
> 1           0.0           0.0
> org-activate-code                                              
> 2           0.0           0.0
> org-font-lock-hook                                             
> 2           0.0           0.0
> org-set-autofill-regexps                                       
> 1           0.0           0.0
> org-cycle-show-empty-lines                                     
> 2           0.0           0.0
> org-activate-target-links                                      
> 2           0.0           0.0
> org-set-local                                                  
> 35          0.0           0.0
> org-clock-update-mode-line                                     
> 1           0.0           0.0
> org-defkey                                                     
> 7           0.0           0.0
> org-clock-get-clock-string                                     
> 1           0.0           0.0
> org-restart-font-lock                                          
> 1           0.0           0.0
> org-add-hook                                                   
> 4           0.0           0.0
> org-remove-keyword-keys                                        
> 3           0.0           0.0
> org-activate-plain-links                                       
> 2           0.0           0.0
> org-font-lock-add-tag-faces                                    
> 2           0.0           0.0
> org-cycle-hide-archived-subtrees                               
> 2           0.0           0.0
> org-at-table-p                                                 
> 1           0.0           0.0
> org-hide-wide-columns                                          
> 2           0.0           0.0
> org-imenu-get-tree                                             
> 1           0.0           0.0
> org-key                                                        
> 7           0.0           0.0
> org-at-item-p                                                  
> 4           0.0           0.0
> org-babel-hide-all-hashes                                      
> 1           0.0           0.0
> org-default-export-plist                                       
> 1           0.0           0.0
> org-activate-tags                                              
> 2           0.0           0.0
> org-reduced-level                                              
> 3           0.0           0.0
> org-at-item-description-p                                      
> 1           0.0           0.0
> org-outline-level                                              
> 7           0.0           0.0
> org-clock-get-clocked-time                                     
> 2           0.0           0.0
> org-last                                                       
> 3           0.0           0.0
> org-invisible-p                                                
> 2           0.0           0.0
> org-get-level-face                                             
> 3           0.0           0.0
> #+end_src
>
> which confirms almost 7 s for just opening that small file into a  
> buffer.
>
> Though, I don't see any potential explanation therefore. Could you  
> help me
> spotting the problem?
>
> Best regards,
>  Seb
>
> * Footnotes
> [fn:1] I even have (longer) files that take longer to open...
>
> -- 
> Sébastien Vauban
> <tags-opening-it-is- 
> sloooooooooow.org>_______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

  parent reply	other threads:[~2010-12-17 12:33 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-17  9:15 Huge performance problems to open some Org files Sébastien Vauban
2010-12-17 10:11 ` Rainer Stengele
2010-12-17 10:44   ` Sébastien Vauban
2010-12-17 12:17 ` Andrew J. Korty
2010-12-17 12:29 ` Carsten Dominik [this message]
2010-12-17 13:26   ` Sébastien Vauban
2010-12-20 19:29     ` Vladimir Alexiev
2011-05-12 22:27       ` Sebastien Vauban
2011-05-13  9:49         ` Eric S Fraga
2011-05-13 10:15         ` Carsten Dominik
2011-05-18 20:09           ` Sebastien Vauban
2010-12-17 15:46 ` Nick Dokos
2010-12-17 21:55 ` Achim Gratz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1C972FF9-236E-45EC-9885-EE69656F0769@gmail.com \
    --to=carsten.dominik@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=wxhgmqzgwmuf@spammotel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).