Re: [O] How to improve Org startup time?

2013-02-14 Thread Tassilo Horn
Sebastien Vauban wxhgmqzgw...@spammotel.com writes: But then org-agenda-to-appt will be called each time your generate a new agenda... not sure you really want this right. Why not simply calling it interactively when you need it? I can't count on myself to do it at a regular enough interval

Re: [O] How to improve Org startup time?

2013-02-14 Thread Sebastien Vauban
Hi Tassilo, Tassilo Horn wrote: Sebastien Vauban writes: But then org-agenda-to-appt will be called each time your generate a new agenda... not sure you really want this right. Why not simply calling it interactively when you need it? I can't count on myself to do it at a regular enough

Re: [O] How to improve Org startup time?

2013-02-14 Thread Memnon Anon
Sebastien Vauban wxhgmqzgw...@spammotel.com writes: Bastien wrote: Sebastien Vauban writes: However, I've left it in the `org-finalize-agenda-hook' hook, so that the `appt-list' is fed up as soon as I begin using agenda functions. But then org-agenda-to-appt will be called each time your

Re: [O] How to improve Org startup time?

2013-02-14 Thread Sebastien Vauban
Hi Memnon, Memnon Anon wrote: Sebastien Vauban writes: Bastien wrote: Sebastien Vauban writes: However, I've left it in the `org-finalize-agenda-hook' hook, so that the `appt-list' is fed up as soon as I begin using agenda functions. But then org-agenda-to-appt will be called each time

Re: [O] How to improve Org startup time?

2013-01-31 Thread Sebastien Vauban
Hi Eric, Eric S Fraga wrote: Sebastien Vauban wxhgmqzgw...@spammotel.com writes: Please find here an enriched log of the packages which are loaded for Org, and the time it takes. [2013-01-29 21:20:18] (info) +- Requiring `appt'... [2013-01-29 21:20:18] (info) +- Requiring `diary-lib'...

Re: [O] How to improve Org startup time?

2013-01-31 Thread Sebastien Vauban
Hi Eric, Eric S Fraga wrote: Some timings on a 3-4 (?) year old netbook with Intel N450 Atom @1.66GHz dual core powered: With old org, actually from October 2012 (!) as this system acts as a cloud server for me so I don't actually use it interactively much: | org-agenda-to-appt |

Re: [O] How to improve Org startup time?

2013-01-31 Thread Sebastien Vauban
Bastien, Sebastien Vauban wrote: Bastien wrote: put your .emacs on diet :) More seriously, I would start by checking org-agenda-to-appt documentation. It should be on your system. If it is not, check online. I tried to filter to only timestamp entries with the following: #+begin_src

Re: [O] How to improve Org startup time?

2013-01-31 Thread Bastien
Hi Sébastien, Sebastien Vauban wxhgmqzgwmuf-genee64ty+gs+fvcfc7...@public.gmane.org writes: #+begin_src emacs-lisp (org-agenda-to-appt nil nil '(:timestamp)) #+end_src Try this: #+begin_src emacs-lisp (org-agenda-to-appt nil nil :timestamp) #+end_src HTH, -- Bastien

Re: [O] How to improve Org startup time?

2013-01-31 Thread Bastien
Hi Sébastien, Sebastien Vauban wxhgmqzgwmuf-genee64ty+gs+fvcfc7...@public.gmane.org writes: For example, why do all the Org agenda files have to be loaded when I'm simply opening a plain common (I mean: not part of the agenda) Org file? They don't. Can you reproduce the problem with a

Re: [O] How to improve Org startup time?

2013-01-31 Thread Achim Gratz
Sebastien Vauban writes: You may be right, but I guess that I'm not alone using Windows 8, so my performance observations must be shared by others as well. It may even be worse for some who have more Org files, and a less powerful computer. Take Emacs and Org out of the picture and check how

Re: [O] How to improve Org startup time?

2013-01-31 Thread Bastien
Sebastien Vauban wxhgmqzgwmuf-genee64ty+gs+fvcfc7...@public.gmane.org writes: However, I've left it in the `org-finalize-agenda-hook' hook, so that the `appt-list' is fed up as soon as I begin using agenda functions. But then org-agenda-to-appt will be called each time your generate a new

Re: [O] How to improve Org startup time?

2013-01-31 Thread Sebastien Vauban
Bastien, Bastien wrote: Sebastien Vauban writes: However, I've left it in the `org-finalize-agenda-hook' hook, so that the `appt-list' is fed up as soon as I begin using agenda functions. But then org-agenda-to-appt will be called each time your generate a new agenda... not sure you really

Re: [O] How to improve Org startup time?

2013-01-31 Thread Eric S Fraga
Sebastien Vauban wxhgmqzgw...@spammotel.com writes: The timestamp stuff comes from EmacsWiki: #+begin_src emacs-lisp (defadvice message (before when-was-that activate) Add timestamps to `message' output. (ad-set-arg 0 (concat (format-time-string [%Y-%m-%d %T] )

Re: [O] How to improve Org startup time?

2013-01-31 Thread Eric S Fraga
Sebastien Vauban wxhgmqzgw...@spammotel.com writes: Hi Eric, [...] Dividing the figures by 50, just for the disks, seems too big for me, nope? Hi Seb, yes, it does seem dramatic. Just to be sure: are you sure that, in this last test, `org-agenda-to-appt' was called without having first

Re: [O] How to improve Org startup time?

2013-01-31 Thread Nick Dokos
Eric S Fraga e.fr...@ucl.ac.uk wrote: - start emacs - M-x elp-instrument-package RET org-agenda RET - M-x org-agenda-to-apt RET - M-x elp-results - quit emacs now gives me | org-agenda-to-appt | 1 | 1.602924479 | 1.602924479 | | org-agenda-prepare-buffers | 1 |

Re: [O] How to improve Org startup time?

2013-01-30 Thread Sebastien Vauban
Hi Nick, Nick Dokos wrote: Sebastien Vauban wxhgmqzgw...@spammotel.com wrote: This may have something to do with my big amount of Org files in `org-agenda-files': 36 at this point. But is that so big?? I don't think so. I'm sure it is, as I wrote (removed from the joined log) a message

Re: [O] How to improve Org startup time?

2013-01-30 Thread Sebastien Vauban
Hi Bastien, Bastien wrote: Sebastien Vauban writes: In particular, you'll see that *16 seconds* are lost between 21:20:30 and 21:20:46. They correspond to the executiong of just *one line*: #+begin_src emacs-lisp (org-agenda-to-appt) #+end_src This may have something to do with my big

Re: [O] How to improve Org startup time?

2013-01-30 Thread Daimrod
Sebastien Vauban wxhgmqzgw...@spammotel.com writes: Finally, org-agenda-to-appt is very slow by default, it uses org-agenda-get-day-entries and check every entry... see the docstring on how to make it check only the ones you really need. Euh... ╭ │ org-agenda-get-day-entries

Re: [O] How to improve Org startup time?

2013-01-30 Thread Daniel Clemente
Per chance, you did not forget to M-x compile ? ;) Good to remind me/us with that, but, once again, no, as I do not use compiled Org files. That way, I'm sure not to forget such recompile step -- which I would definitely do once in a while! If you are worried about speed, you should

Re: [O] How to improve Org startup time?

2013-01-30 Thread Sebastien Vauban
Hi Bastien, Bastien wrote: Can you compare the time spent by the initialization process before and after commit 582cca5806 ? It should improve things sensibly, I'd be curious to know why it does not improve anything -- if that's the case. Before giving the results, let me tell you I've now

Re: [O] How to improve Org startup time?

2013-01-30 Thread Sebastien Vauban
Hi Daniel, Daniel Clemente wrote: Per chance, you did not forget to M-x compile ? ;) Good to remind me/us with that, but, once again, no, as I do not use compiled Org files. That way, I'm sure not to forget such recompile step -- which I would definitely do once in a while! If you are

Re: [O] How to improve Org startup time?

2013-01-30 Thread Florian Beck
Sebastien Vauban wxhgmqzgwmuf-genee64ty+gs+fvcfc7...@public.gmane.org writes: I have to admit working most of the time without the laptop being powered, which I know (from observation) is 2 to 3 times slower. So maybe your disk is powered down or in a sleep mode in order to save power?

Re: [O] How to improve Org startup time?

2013-01-30 Thread Bastien
Hi Sébastien, put your .emacs on diet :) More seriously, I would start by checking org-agenda-to-appt documentation. It should be on your system. If it is not, check online. That's what really slows down your config. Then, when this is done, I would try to use only those hooks that are

Re: [O] How to improve Org startup time?

2013-01-30 Thread Achim Gratz
Sebastien Vauban writes: These are the means over a couple of tests. But the maximum variance (over that small number of tests) is only about 0.04 s -- in powered mode. File operations on Windows _are_ slow to start with and since a virus scanner is more or less required these days, opening a

Re: [O] How to improve Org startup time?

2013-01-30 Thread Sebastien Vauban
Hi Bastien, Bastien wrote: put your .emacs on diet :) More seriously, I would start by checking org-agenda-to-appt documentation. It should be on your system. If it is not, check online. I tried to filter to only timestamp entries with the following: #+begin_src emacs-lisp

Re: [O] How to improve Org startup time?

2013-01-30 Thread Sebastien Vauban
Hi Achim, Achim Gratz wrote: Sebastien Vauban writes: These are the means over a couple of tests. But the maximum variance (over that small number of tests) is only about 0.04 s -- in powered mode. File operations on Windows _are_ slow to start with and since a virus scanner is more or less

Re: [O] How to improve Org startup time?

2013-01-30 Thread Bastien
Sebastien Vauban wxhgmqzgwmuf-genee64ty+gs+fvcfc7...@public.gmane.org writes: Plus, from the speed comparisons I had done once, I felt the difference as being completely marginal. FWIW this is also what I observed, I don't compile anymore. -- Bastien

Re: [O] How to improve Org startup time?

2013-01-30 Thread Eric S Fraga
Sebastien Vauban wxhgmqzgw...@spammotel.com writes: Hello, Please find here an enriched log of the packages which are loaded for Org, and the time it takes. [2013-01-29 21:20:18] (info) +- Requiring `appt'... [2013-01-29 21:20:18] (info) +- Requiring `diary-lib'... [2013-01-29 21:20:18]

Re: [O] How to improve Org startup time?

2013-01-30 Thread Eric S Fraga
Daniel Clemente n142...@gmail.com writes: If you are worried about speed, you should always byte-compile, because it's easy and byte-compiled code is faster. Just do a make after each git pull. I do compile org but I do not compile any of my start-up files; this is a practice I got into

Re: [O] How to improve Org startup time?

2013-01-30 Thread Eric S Fraga
Some timings on a 3-4 (?) year old netbook with Intel N450 Atom @1.66GHz dual core powered: With old org, actually from October 2012 (!) as this system acts as a cloud server for me so I don't actually use it interactively much: | org-agenda-to-appt | 1 | 12.525722775 | 12.525722775

[O] How to improve Org startup time?

2013-01-29 Thread Sebastien Vauban
Hello, Please find here an enriched log of the packages which are loaded for Org, and the time it takes. --8---cut here---start-8--- [2013-01-29 21:20:18] (info) +- Requiring `appt'... [2013-01-29 21:20:18] (info) +- Requiring `diary-lib'... [2013-01-29

Re: [O] How to improve Org startup time?

2013-01-29 Thread Daimrod
Sebastien Vauban wxhgmqzgw...@spammotel.com writes: Hello, Hello Sebastien, I would like to have: - the minimal Org config loaded when opening any .org file; IOW, certainly not the agenda files! - all files in `org-agenda-files' when calling any agenda view (C-c a ...) - the current

Re: [O] How to improve Org startup time?

2013-01-29 Thread Sebastien Vauban
Hello Daimrod, Daimrod wrote: Sebastien Vauban wxhgmqzgw...@spammotel.com writes: I would like to have: - the minimal Org config loaded when opening any .org file; IOW, certainly not the agenda files! - all files in `org-agenda-files' when calling any agenda view (C-c a ...) - the

Re: [O] How to improve Org startup time?

2013-01-29 Thread Nick Dokos
Sebastien Vauban wxhgmqzgw...@spammotel.com wrote: In particular, you'll see that *16 seconds* are lost between 21:20:30 and 21:20:46. They correspond to the executiong of just *one line*: #+begin_src emacs-lisp (org-agenda-to-appt) #+end_src This may have something to do with my big

Re: [O] How to improve Org startup time?

2013-01-29 Thread Daimrod
Sebastien Vauban wxhgmqzgw...@spammotel.com writes: Hello Daimrod, Daimrod wrote: Sebastien Vauban wxhgmqzgw...@spammotel.com writes: I would like to have: - the minimal Org config loaded when opening any .org file; IOW, certainly not the agenda files! - all files in

Re: [O] How to improve Org startup time?

2013-01-29 Thread Sebastien Vauban
Hi Nick, Thanks for looking into this as well! Nick Dokos wrote: Sebastien Vauban wxhgmqzgw...@spammotel.com wrote: In particular, you'll see that *16 seconds* are lost between 21:20:30 and 21:20:46. They correspond to the executiong of just *one line*: #+begin_src emacs-lisp

Re: [O] How to improve Org startup time?

2013-01-29 Thread Sebastien Vauban
Daimrod, Daimrod wrote: Sebastien Vauban wxhgmqzgw...@spammotel.com writes: Daimrod wrote: Sebastien Vauban wxhgmqzgw...@spammotel.com writes: I would like to have: - the minimal Org config loaded when opening any .org file; IOW, certainly not the agenda files! - all files in

Re: [O] How to improve Org startup time?

2013-01-29 Thread Nick Dokos
Sebastien Vauban wxhgmqzgw...@spammotel.com wrote: This may have something to do with my big amount of Org files in `org-agenda-files': 36 at this point. But is that so big?? I don't think so. I'm sure it is, as I wrote (removed from the joined log) a message call before and after

Re: [O] How to improve Org startup time?

2013-01-29 Thread Bastien
HI Sébastien, Sebastien Vauban wxhgmqzgwmuf-genee64ty+gs+fvcfc7...@public.gmane.org writes: In particular, you'll see that *16 seconds* are lost between 21:20:30 and 21:20:46. They correspond to the executiong of just *one line*: #+begin_src emacs-lisp (org-agenda-to-appt) #+end_src