From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: notifications for todo items Date: Sat, 25 Feb 2012 21:45:21 -0500 Message-ID: <17232.1330224321@alphaville> References: <87hayixwu8.fsf@micropit.couberia.bzh> <7623.1329960485@alphaville> <87vcmyvtcu.fsf@micropit.couberia.bzh> <12871.1330128535@alphaville> <87k43a5ucg.fsf@micropit.couberia.bzh> Reply-To: nicholas.dokos@hp.com Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:44198) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S1U79-0003as-OW for emacs-orgmode@gnu.org; Sat, 25 Feb 2012 21:45:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S1U72-0005Ot-Qo for emacs-orgmode@gnu.org; Sat, 25 Feb 2012 21:45:31 -0500 Received: from g1t0026.austin.hp.com ([15.216.28.33]:1249) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S1U72-0005Op-Jv for emacs-orgmode@gnu.org; Sat, 25 Feb 2012 21:45:24 -0500 In-Reply-To: Message from =?us-ascii?Q?=3D=3Futf-8=3FQ=3FPeter=5FM=3DC3=3D?= =?us-ascii?Q?BCnster=3F=3D?= of "Sun\, 26 Feb 2012 01\:09\:03 +0100." <87k43a5ucg.fsf@micropit.couberia.bzh> 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: =?us-ascii?Q?=3D=3Futf-8=3FQ=3FPeter=5FM=3DC3=3DBCnster=3F=3D?= Cc: nicholas.dokos@hp.com, emacs-orgmode@gnu.org Peter M=C3=BCnster wrote: > On Sat, Feb 25 2012, Nick Dokos wrote: >=20 > > A quick first impression: orgntf-process seems expensive. It seems > > to take 100% of one core (I've got a quad-core processor) for three or > > four seconds every fifty seconds. Unfortunately, the core is the same o= ne > > that's running emacs, so emacs stops responding for those three or four > > seconds. I have disabled org-notify for now. >=20 > How many lines do you have in your org-files? > (I've about 200 and execution time is about 100ms.) >=20 Roughly 7000 - I just added a task to clean things up, so it's now 7002 :-) > I call now "(org-element-parse-buffer 'heading)", I hope it's faster for > you. Is it faster, when the file is byte-compiled? >=20 > Other ideas: > - I could divide orgntf-process into several tasks, so that things run > more smoothly. > - You could call (org-notify-start -60), so the process will be called, > when idle for one minute. >=20 This sounds promising - I'll try this out in the next iteration. > The file has a new home: https://github.com/p-m/org-notify > There is now `orgntf-verbose' to see execution time of > `orgntf-todo-list'. >=20 OK - I'll try it out when I get a chance. Thanks, Nick