From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?S=C3=A9bastien_Vauban?= Subject: Re: Having (too) many files in org-agenda-files Date: Thu, 30 Sep 2010 19:08:02 +0200 Message-ID: <87eicbb1n1.fsf@mundaneum.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> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: 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-mXXj517/zsQ@public.gmane.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org Hi Nick, Nick Dokos wrote: > S=C3=A9bastien Vauban wrote: >>>>> Also, you might consider to remove (org-agenda-list) from .emacs. I >>>>> think it is pretty much always a bad idea to put a command like this >>>>> into your startup. Just make it a habit to call it early after starti= ng >>>>> Emacs. >>>> >>>> Honestly, that would not change that much. Having to wait 92 seconds at >>>> startup, or a long time just a few minutes later has the same impact f= or >>>> 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 top of > my head and entirely untested, adding > > ,---- > | (require 'elp) > | (elp-instrument-package "font-lock") > |=20 > | ;; rest of your .emacs > |=20 > | (elp-results) > `---- > > might be enough. Here are the results. --8<---------------cut here---------------start------------->8--- font-lock-fontify-buffer 96 15.3= 83627999 0.1602461249 font-lock-default-fontify-buffer 96 15.3= 78296000 0.1601905833 font-lock-fontify-region 96 15.2= 84044000 0.1592087916 font-lock-default-fontify-region 96 15.2= 82674000 0.1591945208 font-lock-fontify-keywords-region 96 15.1= 84516 0.1581720416 font-lock-prepend-text-property 8608 0.27= 12220000 3.150...e-05 font-lock-unfontify-region 96 0.08= 59729999 0.0008955520 font-lock-add-keywords 166 0.08= 00819999 0.0004824216 font-lock-compile-keywords 138 0.06= 71930000 0.0004869057 font-lock-default-unfontify-region 96 0.03= 78660000 0.0003944375 font-lock-mode 142 0.03= 44680000 0.0002427323 font-lock-default-function 142 0.02= 8445 0.0002003169 font-lock-mode-internal 73 0.02= 72529999 0.0003733287 font-lock-turn-on-thing-lock 73 0.02= 38939999 0.0003273150 font-lock-compile-keyword 5505 0.02= 25559999 4.097...e-06 font-lock-set-defaults 525 0.01= 74539999 3.324...e-05 font-lock-remove-keywords 130 0.00= 18569999 1.428...e-05 font-lock-change-mode 33 0.00= 16060000 4.866...e-05 font-lock-eval-keywords 81 0.00= 12500000 1.543...e-05 font-lock-value-in-major-mode 187 0.00= 03879999 2.074...e-06 font-lock-extend-region-wholelines 96 0.00= 0309 3.21875e-06 font-lock-extend-region-multiline 96 0.00= 02549999 2.656...e-06 font-lock-extend-jit-lock-region-after-change 28 0.00= 02529999 9.035...e-06 font-lock-after-fontify-buffer 96 0.00= 02499999 2.604...e-06 font-lock-choose-keywords 41 8.89= 9...e-05 2.170...e-06 font-lock-update-removed-keyword-alist 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 my E= macs startup. Though, I don't know what's the next action to be taken from this observati= on. Can you guide me? Best regards, Seb --=20 S=C3=A9bastien Vauban _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode-mXXj517/zsQ@public.gmane.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode