From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?Peter_M=C3=BCnster?= Subject: optimisation of org-notify (was: notifications for todo items) Date: Sun, 26 Feb 2012 15:06:31 +0100 Message-ID: <878vjp6654.fsf_-_@micropit.couberia.bzh> References: <87hayixwu8.fsf@micropit.couberia.bzh> <7623.1329960485@alphaville> <87vcmyvtcu.fsf@micropit.couberia.bzh> <12871.1330128535@alphaville> <87k43a5ucg.fsf@micropit.couberia.bzh> <18201.1330232699@alphaville> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:41062) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S1ekX-00047r-0A for emacs-orgmode@gnu.org; Sun, 26 Feb 2012 09:06:59 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S1ekO-0000QS-RG for emacs-orgmode@gnu.org; Sun, 26 Feb 2012 09:06:52 -0500 Received: from plane.gmane.org ([80.91.229.3]:59183) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S1ekO-0000QK-Lj for emacs-orgmode@gnu.org; Sun, 26 Feb 2012 09:06:44 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1S1ekL-0006Sz-6o for emacs-orgmode@gnu.org; Sun, 26 Feb 2012 15:06:41 +0100 Received: from arennes-359-1-256-163.w2-2.abo.wanadoo.fr ([2.2.207.163]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 26 Feb 2012 15:06:41 +0100 Received: from pmlists by arennes-359-1-256-163.w2-2.abo.wanadoo.fr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 26 Feb 2012 15:06:41 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org On Sun, Feb 26 2012, Nick Dokos wrote: > So orgntf-todo-list takes the lion's share of the time but > most of it is the 15 calls to org-element-parse-buffer Ok, then I could process only one file at a time. This would divide the processing time by 15, in your case. But perhaps others would have the 7000 lines in one file only, then it would not work... So, it is worth the effort? Thanks for the profiling! -- Peter