From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sharon Kimble Subject: Re: footnotes problems in split files on export to latex - 'profiler-report' Date: Wed, 01 Feb 2017 11:45:17 +0000 Message-ID: <87lgtq6soi.fsf_-_@skimble.plus.com> References: <87fujzjygr.fsf@skimble.plus.com> <87r33jmmqq.fsf@nicolasgoaziou.fr> <87a8a7fbtn.fsf@skimble.plus.com> <8737fyn8pb.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46665) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cYtLt-0001ag-EK for emacs-orgmode@gnu.org; Wed, 01 Feb 2017 06:45:30 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cYtLq-00053d-Ce for emacs-orgmode@gnu.org; Wed, 01 Feb 2017 06:45:29 -0500 Received: from avasout06.plus.net ([212.159.14.18]:40356) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cYtLq-00053L-47 for emacs-orgmode@gnu.org; Wed, 01 Feb 2017 06:45:26 -0500 In-Reply-To: <8737fyn8pb.fsf@nicolasgoaziou.fr> (Nicolas Goaziou's message of "Tue, 31 Jan 2017 23:52:32 +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" To: Nicolas Goaziou Cc: org-mode-email --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Nicolas Goaziou writes: > Hello, > > Sharon Kimble writes: > >> Also, if I try to insert a footnote inside the parent file it try's to >> renumber the footnotes, which then causes problems with the other child >> files. > > I cannot see why it would cause problems with other included files. > Footnote numbers are hermetic across included files. IOW you can > have [fn:1] in the master document and in every included file. > > Could you show an ECM? > >> The file is only 1.4mbs, but it has does have 23,985 lines and it is >> glacially-slow in navigating the file, and it does take up large >> percentages of CPU usage. Is there any way in which I could somehow make >> emacs change its capabilities to allow files with large number of line >> numbers please? > > This is another, unrelated, issue. Please send a profiler report (using > M-x profiler-start ...). > I've never used 'profiler-report' but had only read about it yesterday, so I started using it today, and its an incredibly useful thing - programme? This what it found with my mega-sized file - =2D-8<---------------cut here---------------start------------->8--- =2D timer-event-handler 10025 92% - apply 10021 92% - wicked/update-wc 9607 88% - setq 9607 88% - number-to-string 9607 88% - count-words-buffer 9607 88% - save-excursion 9607 88% - let 9607 88% - while 9579 88% setq 20 0% not 16 0% - tabbar-ruler-mouse-movement 363 3% - run-with-idle-timer 18 0% - timer-activate-when-idle 5 0% - timer--activate 4 0% timer--time-less-p 4 0% - bibtex-parse-buffers-stealthily 9 0% =2D-8<---------------cut here---------------end--------------->8--- That's just the major sections using the most CPU cycles. From=20that display I was able to track down that it was constantly and continuously counting all the words in the file! Well I've never used a word-count for anything so I commented it out in my config and restarted emacs. And now in the same file I can move about with considerable ease using 'Imenu'. Now, on the same file, its showing - =2D-8<---------------cut here---------------start------------->8--- =2D timer-event-handler 15450 27% - apply 15378 27% - jit-lock-deferred-fontify 5513 9% + redisplay 5250 9% # 14 0% - org-indent-initialize-agent 4307 7% - org-indent-initialize-buffer 4307 7% - org-indent-add-properties 4301 7% - org-at-item-p 4065 7% - org-list-in-valid-context-p 4042 7% + org-in-block-p 3852 6% - org-indent-set-line-properties 77 0% org-add-props 8 0% org-list-item-body-column 23 0% - org-current-level 3 0% org-outline-level 1 0% - tabbar-ruler-mouse-movement 1941 3% - run-with-idle-timer 111 0% - timer-activate-when-idle 80 0% - timer--activate 44 0% timer--time-less-p 44 0% timer-set-function 4 0% timer-set-idle-time 4 0% seconds-to-time 12 0% + cancel-timer 8 0% + jit-lock-stealth-fontify 1618 2% + ac-update-greedy 929 1% + highlight-symbol-temp-highlight 321 0% + org-ref-link-message 114 0% + keyfreq-autosave--do 94 0% + my-frame-title-refresh 56 0% + # 45 0% + show-paren-function 8 0% + guide-key/polling-function 7 0% jit-lock-force-redisplay 6 0% + isearch-lazy-highlight-update 3 0% + timer-activate-when-idle 15 0% timer-activate 4 0% timer-until 1 0% cancel-timer-internal 1 0% =2D command-execute 14315 25% =2D-8<---------------cut here---------------end--------------->8--- Which is considerable better. Thanks Nicolas. Sharon. =2D-=20 A taste of linux =3D http://www.sharons.org.uk TGmeds =3D http://www.tgmeds.org.uk Debian 8.6, fluxbox 1.3.5-2, emacs 25.1.1.1 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJYkcpNAAoJEDaBgBkK+INbZ8oP/0mpgsjtXqsgayI18qP8RkkK bxtoXWohzDOHHHTMTUWAOeXUvkEAuKE81sf0qgm5NeQqbPDzJzlyXZ5BEZbLB4zz 7WwdB6U2Ql3s7eftXYRbEyiCV3nQx/xHauucBdAUmzjF/6EoZrh6MBOigpgetK+d WXsZ6SIzM8tv31B7RAIQ5fTkrcIRDUtSCxmp5zUFtQ/Iuke6BgLluMBLdaFr9sPf iRAil7YWpPMgZw1Gu3cOcaek30RCbNKQSJ9C4LtqBbx+KSQO0X3C5Cdl/liaNsMv CQzuPRf0laohsxyMgKa00qT5L1tQLR5YJquKrxasq8FhHQ+4Iv23nR/i7Cb5W24v sxwKGEoN9pvEDBV9ZXAaJ0FqieLUxrR4Gr2isAUYcJQ3Uzfs+IsdSmZDYH6Fyx5D h4Vav+sH1RlIRpxF548MtXMp3SRt0qGkqYCS8ooNlkq5BXLOgdWsIc/ux8oeMS15 nzAw5UzMZYdPsyN8E/sS/f3hQVFaCbYmY8lC9FwICxjSYQ58exKvElSFQlD5y/at hqj6/LD/F2Eru2nqyLcYTc9lMXc7t8E5xI5DRxJM+ArnzsCh40trEIl0+lxuNz1z a0mRh57AQHhvG4Ej9/9YhZRR8u34tQbtdO1tJ5lqAHJeJ28JABJ5lFCdQmwEv9OB U/dqqpHpchaeaeMqdXTK =ooBs -----END PGP SIGNATURE----- --=-=-=--