Re: [Orgmode] [PATCH] Optimize org-habit-parse-todo

2011-01-25 Thread Matt Lundin
* lisp/org-habit.el: (org-habit-parse-todo) Don't parse more days than needed. When constructing a consistency graph, org-habit now stops searching for timestamps when the number of matches exceeds the span of time displayed in the graph. This can lead to a significant speedup in agenda

Re: [Orgmode] [PATCH] Optimize org-habit-parse-todo

2011-01-25 Thread Carsten Dominik
Applied, thanks. - Carsten On Jan 25, 2011, at 9:03 PM, Matt Lundin wrote: * lisp/org-habit.el: (org-habit-parse-todo) Don't parse more days than needed. When constructing a consistency graph, org-habit now stops searching for timestamps when the number of matches exceeds the span of time

Re: [Orgmode] [PATCH] Optimize org-habit-parse-todo

2011-01-24 Thread Carsten Dominik
Hi Matt Hmmm, this looks like a very important optimisation indeed. I am just wondering if it is always safe to do it like this. Have you checked if this is influenced by org-reverse-notes-order or similar things? - Carsten On Jan 19, 2011, at 1:39 PM, Matt Lundin wrote: *

Re: [Orgmode] [PATCH] Optimize org-habit-parse-todo

2011-01-24 Thread Carsten Dominik
On Jan 25, 2011, at 7:01 AM, Carsten Dominik wrote: Hi Matt Hmmm, this looks like a very important optimisation indeed. I am just wondering if it is always safe to do it like this. Have you checked if this is influenced by org-reverse-notes-order or similar things? I am sorry, I see now

[Orgmode] [PATCH] Optimize org-habit-parse-todo

2011-01-19 Thread Matt Lundin
* lisp/org-habit.el: (org-habit-parse-todo) Don't parse more days than needed. When constructing a consistency graph, org-habit (with this patch) will stop searching for timestamps when the number of matches exceeds the span of time displayed in the graph. This can produce a significant speedup