From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Lundin Subject: Re: org-agenda-do-date-late and emacs freeze Date: Tue, 25 Mar 2014 13:37:19 -0500 Message-ID: <87txam15wg.fsf@fastmail.fm> References: <20140218123848.GA9094@pedroche.uni-erfurt.de> <87lhwrq5dt.fsf@fastmail.fm> <87fvmzq56r.fsf@fastmail.fm> <87a9ckluo7.fsf@bzg.ath.cx> <8761n7nzvj.fsf@fastmail.fm> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52100) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WSWE4-00043L-Lk for emacs-orgmode@gnu.org; Tue, 25 Mar 2014 14:37:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WSWDx-0000To-LK for emacs-orgmode@gnu.org; Tue, 25 Mar 2014 14:37:28 -0400 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:55643) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WSWDx-0000TO-Dd for emacs-orgmode@gnu.org; Tue, 25 Mar 2014 14:37:21 -0400 In-Reply-To: <8761n7nzvj.fsf@fastmail.fm> (Matt Lundin's message of "Fri, 21 Mar 2014 13:57:36 -0500") 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: Bastien Cc: emacs-orgmode@gnu.org Hi Bastien, Matt Lundin writes: > Bastien writes: > >> Hi Matt and all, >> >> thanks a lot for the detailed investigation -- I revisited the >> related problems and applied a fix. Please let me know if you >> encoutner some glitches. > > Seems to work fine now. Thanks! The only minor issue with the fix is that move-beginning-of-line (lines 9195-6 of org-agenda.el) is slower than beginning-of-line. It's not so bad when you push an item one day forward, but it creates significant lag when calling org-agenda-do-date-late several times in a row. --8<---------------cut here---------------start------------->8--- org-agenda-do-date-later 1 0.289220361 0.289220361 org-agenda-date-later 1 0.289163161 0.289163161 move-beginning-of-line 84 0.2790279490 0.0033217612 --8<---------------cut here---------------end--------------->8--- vs. --8<---------------cut here---------------start------------->8--- org-agenda-do-date-later 1 0.010506186 0.010506186 org-agenda-date-later 1 0.01044766 0.01044766 beginning-of-line 93 0.001790849 1.925...e-05 --8<---------------cut here---------------end--------------->8--- Thanks, Matt