From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?Peter_M=C3=BCnster?= Subject: Re: notifications for todo items Date: Sun, 26 Feb 2012 01:09:03 +0100 Message-ID: <87k43a5ucg.fsf@micropit.couberia.bzh> References: <87hayixwu8.fsf@micropit.couberia.bzh> <7623.1329960485@alphaville> <87vcmyvtcu.fsf@micropit.couberia.bzh> <12871.1330128535@alphaville> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:58060) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S1Rg1-0001A1-UT for emacs-orgmode@gnu.org; Sat, 25 Feb 2012 19:09:27 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S1Rfw-00025h-5J for emacs-orgmode@gnu.org; Sat, 25 Feb 2012 19:09:21 -0500 Received: from plane.gmane.org ([80.91.229.3]:56802) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S1Rfv-00025Y-Uy for emacs-orgmode@gnu.org; Sat, 25 Feb 2012 19:09:16 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1S1Rfs-0001kr-V1 for emacs-orgmode@gnu.org; Sun, 26 Feb 2012 01:09:12 +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 01:09:12 +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 01:09:12 +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 Sat, Feb 25 2012, Nick Dokos wrote: > 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 one > that's running emacs, so emacs stops responding for those three or four > seconds. I have disabled org-notify for now. How many lines do you have in your org-files? (I've about 200 and execution time is about 100ms.) I call now "(org-element-parse-buffer 'heading)", I hope it's faster for you. Is it faster, when the file is byte-compiled? 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. 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'. Thanks for testing! -- Peter