From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Re: Having (too) many files in org-agenda-files Date: Thu, 30 Sep 2010 19:37:32 +0200 Message-ID: <71A379F0-8D86-42F2-AB35-91AECD0027EA@gmail.com> References: <878w2lso50.fsf@mundaneum.com> <877hi56jc0.fsf@mundaneum.com> <87fwwsfazb.fsf@mundaneum.com> <493C67F4-E312-43F3-B5D2-62F740EADD72@gmail.com> <87hbh7v46b.fsf@mundaneum.com> <30320.1285860823@gamaville.dokosmarshall.org> <87eicbb1n1.fsf@mundaneum.com> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=ISO-8859-1; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=40729 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P1N4h-0003Pj-Uu for emacs-orgmode@gnu.org; Thu, 30 Sep 2010 13:37:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P1N4f-00044h-B5 for emacs-orgmode@gnu.org; Thu, 30 Sep 2010 13:37:43 -0400 Received: from mail-ey0-f169.google.com ([209.85.215.169]:42379) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P1N4f-00043y-2H for emacs-orgmode@gnu.org; Thu, 30 Sep 2010 13:37:41 -0400 Received: by eyh5 with SMTP id 5so1182361eyh.0 for ; Thu, 30 Sep 2010 10:37:38 -0700 (PDT) In-Reply-To: <87eicbb1n1.fsf@mundaneum.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: =?ISO-8859-1?Q?S=E9bastien_Vauban?= Cc: emacs-orgmode@gnu.org On Sep 30, 2010, at 7:08 PM, S=E9bastien Vauban wrote: > Hi Nick, > > Nick Dokos wrote: >> S=E9bastien Vauban wrote: >>>>>> Also, you might consider to remove (org-agenda-list) =20 >>>>>> from .emacs. I >>>>>> think it is pretty much always a bad idea to put a command like =20= >>>>>> this >>>>>> into your startup. Just make it a habit to call it early after =20= >>>>>> starting >>>>>> Emacs. >>>>> >>>>> Honestly, that would not change that much. Having to wait 92 =20 >>>>> seconds at >>>>> startup, or a long time just a few minutes later has the same =20 >>>>> impact for >>>>> me. >> >> Maybe you should try adding a call to the profiler to your .emacs >> and try to measure e.g. how much the font locking costs. Off the =20 >> top of >> my head and entirely untested, adding >> >> ,---- >> | (require 'elp) >> | (elp-instrument-package "font-lock") >> | >> | ;; rest of your .emacs >> | >> | (elp-results) >> `---- >> >> might be enough. > > Here are the results. > > --8<---------------cut here---------------start------------->8--- > font-lock-fontify-buffer =20 > 96 15.383627999 0.1602461249 Well, the point I am trying to make already for a number of messages =20 is this: font-lock-fontify-buffer should not be called at all - it is not called in my setup. But, apparently, fontlock is bad, but not the worst issue you are =20 encountering. > font-lock-default-fontify-buffer =20 > 96 15.378296000 0.1601905833 > font-lock-fontify-region =20 > 96 15.284044000 0.1592087916 > font-lock-default-fontify-region =20 > 96 15.282674000 0.1591945208 > font-lock-fontify-keywords-region =20 > 96 15.184516 0.1581720416 > font-lock-prepend-text-property =20 > 8608 0.2712220000 3.150...e-05 > font-lock-unfontify-region =20 > 96 0.0859729999 0.0008955520 > font-lock-add-keywords =20 > 166 0.0800819999 0.0004824216 > font-lock-compile-keywords =20 > 138 0.0671930000 0.0004869057 > font-lock-default-unfontify-region =20 > 96 0.0378660000 0.0003944375 > font-lock-mode =20 > 142 0.0344680000 0.0002427323 > font-lock-default-function =20 > 142 0.028445 0.0002003169 > font-lock-mode-internal =20 > 73 0.0272529999 0.0003733287 > font-lock-turn-on-thing-lock =20 > 73 0.0238939999 0.0003273150 > font-lock-compile-keyword =20 > 5505 0.0225559999 4.097...e-06 > font-lock-set-defaults =20 > 525 0.0174539999 3.324...e-05 > font-lock-remove-keywords =20 > 130 0.0018569999 1.428...e-05 > font-lock-change-mode =20 > 33 0.0016060000 4.866...e-05 > font-lock-eval-keywords =20 > 81 0.0012500000 1.543...e-05 > font-lock-value-in-major-mode =20 > 187 0.0003879999 2.074...e-06 > font-lock-extend-region-wholelines =20 > 96 0.000309 3.21875e-06 > font-lock-extend-region-multiline =20 > 96 0.0002549999 2.656...e-06 > font-lock-extend-jit-lock-region-after-change =20 > 28 0.0002529999 9.035...e-06 > font-lock-after-fontify-buffer =20 > 96 0.0002499999 2.604...e-06 > font-lock-choose-keywords =20 > 41 8.899...e-05 2.170...e-06 > font-lock-update-removed-keyword-alist =20 > 36 6.8e-05 1.888...e-06 > --8<---------------cut here---------------end--------------->8--- > > with 94 files in my =3Dorg-agenda-files=3D. Yes, 94, not 96? > > You can effectively see that =3Dfont-lock-*=3D is taking me 15s during = =20 > my Emacs > startup. > > Though, I don't know what's the next action to be taken from this =20 > observation. > Can you guide me? You should instrument other packages like org and outline to see where =20= the rest of the time is eaten. - Carsten=