Optimize org-habit-parse-todo
commitc03c8f0e7cc5b8cb1268fe2f7663b6e197d6cb88
authorMatt Lundin <mdl@imapmail.org>
Wed, 26 Jan 2011 01:03:47 +0000 (26 01:03 +0000)
committerCarsten Dominik <carsten.dominik@gmail.com>
Tue, 25 Jan 2011 21:58:57 +0000 (25 22:58 +0100)
treee41e27ea5304e2051fa330d0e1a3bf8791ba9b31
parent8899e596f9b504104c2189df87d8faa63a0e9cd1
Optimize org-habit-parse-todo

* 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 construction, especially for entries with many logbook entries.
Previously, org-habit would parse all logbook timestamps, even if they
numbered in the hundreds.
lisp/org-habit.el