From: Nick Dokos <nicholas.dokos@hp.com>
To: Lucas Peng <lucasp0927@gmail.com>
Cc: Bernt Hansen <bernt@norang.ca>,
nicholas.dokos@hp.com, emacs-orgmode@gnu.org,
Carsten Dominik <carsten.dominik@gmail.com>
Subject: Re: Re: Bug: create latex png while export to HTML become very slow [6.35i]
Date: Mon, 19 Apr 2010 01:30:20 -0400 [thread overview]
Message-ID: <23201.1271655020@gamaville.dokosmarshall.org> (raw)
In-Reply-To: Message from Lucas Peng <lucasp0927@gmail.com> of "Sat\, 17 Apr 2010 15\:48\:28 +0800." <l2j9c3f77c31004170048i507889cy5482c58ccd2741ec@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 2784 bytes --]
Lucas Peng <lucasp0927@gmail.com> wrote:
> I wanted to export some files to html, and they contain lots of LaTeX
> fragments.
> I've done some test on 6.35i and 6.34c.
> 6.35i included more packages when converting LaTeX to PNG, and that's a big
> issue for me because it is time consuming.
> And the result .dvi is much larger than 6.34c.
>
> these are some of my test result.
> 6.35i
> http://pastebin.com/0YPhjdW2
>
> 6.34c
> http://pastebin.com/A1azh7dW
>
I did some profiling with these two releases and can confirm that 6.35i
is slower (by about a factor of 2.5 in my particular case). I exported
the following file (pretty much lifted from the manual) to HTML with
org-export-with-LaTeX-fragments set to t:
,----
|
| * foo
|
| \begin{equation} % arbitrary environments,
| x=\sqrt{b} % even tables, figures
| \end{equation} % etc
|
| If $a^2=b$ and \( b=2 \), then the solution must be
| either $$ a=+\sqrt{2} $$ or \[ a=-\sqrt{2} \].
`----
The profile starts like this for 6.35i:
org-export 1 10.622031 10.622031
org-export-as-html 1 9.529249 9.529249
org-export-preprocess-string 1 9.510265 9.510265
org-export-html-preprocess 1 9.502661 9.502661
org-format-latex 1 9.502494 9.502494
org-create-formula-image 5 9.479597 1.8959194
org-mode 1 0.004826 0.004826
...
and like this for 6.34c:
org-export 2 4.470028 2.235014
org-export-as-html 2 2.172419 1.0862095
org-export-preprocess-string 2 2.03408 1.01704
org-export-html-preprocess 2 2.02233 1.011165
org-format-latex 1 2.021664 2.021664
org-create-formula-image 5 1.978296 0.3956592
org-mode 4 0.2131019999 0.0532754999
Clearly, org-create-formula-image is eating much more time nowadays.
The complete profiling results are attached. I also did an ls -lR to get
some sizes after Lucas's mail above, but I have not looked into that yet
- nevertheless, the sizes are also in the results file.
Nick
[-- Attachment #2: Profiling (and size) results --]
[-- Type: text/plain, Size: 11576 bytes --]
* Org-mode version 6.35trans (release_6.35i)
** profile
org-export 1 10.622031 10.622031
org-export-as-html 1 9.529249 9.529249
org-export-preprocess-string 1 9.510265 9.510265
org-export-html-preprocess 1 9.502661 9.502661
org-format-latex 1 9.502494 9.502494
org-create-formula-image 5 9.479597 1.8959194
org-mode 1 0.004826 0.004826
org-export-push-to-kill-ring 1 0.003082 0.003082
org-kill-new 1 0.001904 0.001904
org-fit-window-to-buffer 1 0.001263 0.001263
org-html-expand 13 0.001239 9.530...e-05
org-install-agenda-files-menu 1 0.001225 0.001225
org-html-do-expand 18 0.000931 5.172...e-05
org-agenda-files 1 0.000757 0.000757
org-splice-latex-header 5 0.000594 0.0001188
org-infile-export-plist 3 0.0005729999 0.0001909999
org-export-normalize-links 1 0.000553 0.000553
org-file-image-p 5 0.0005250000 0.0001050000
org-image-file-name-regexp 5 0.000468 9.36e-05
org-default-export-plist 1 0.000405 0.000405
org-set-regexps-and-options 1 0.000344 0.000344
org-export-define-heading-targets 1 0.000267 0.000267
org-export-html-convert-sub-super 18 0.0002450000 1.361...e-05
org-latex-packages-to-string 5 0.000236 4.719...e-05
org-export-blocks-preprocess 1 0.000223 0.000223
org-link-unescape 10 0.0002209999 2.21e-05
org-export-html-format-image 5 0.000189 3.780...e-05
org-html-handle-time-stamps 10 0.0001810000 1.810...e-05
org-footnote-normalize 1 0.000156 0.000156
org-html-level-start 2 0.000146 7.3e-05
org-export-attach-captions-and-attributes 1 0.000142 0.000142
org-export-html-convert-special-strings 18 0.0001220000 6.777...e-06
org-export-html-convert-emphasize 18 0.0001200000 6.666...e-06
org-export-remove-headline-metadata 1 0.000115 0.000115
org-export-concatenate-multiline-emphasis 1 0.000114 0.000114
org-open-par 7 0.0001110000 1.585...e-05
org-export-select-backend-specific-text 1 0.000109 0.000109
org-section-number 3 0.000104 3.466...e-05
org-export-protect-verbatim 1 0.000104 0.000104
org-make-options-regexp 4 0.000102 2.55e-05
org-export-replace-src-segments-and-examples 1 9.5e-05 9.5e-05
org-html-protect 18 8.300...e-05 4.611...e-06
org-file-menu-entry 15 7.900...e-05 5.266...e-06
org-babel-exp-inline-src-blocks 1 7.8e-05 7.8e-05
org-export-handle-export-tags 1 7.6e-05 7.6e-05
org-split-string 5 6.900...e-05 1.380...e-05
org-extract-attributes 5 6.3e-05 1.26e-05
org-update-radio-target-regexp 1 6.1e-05 6.1e-05
org-close-par-maybe 9 5.699...e-05 6.333...e-06
org-init-section-numbers 3 5.3e-05 1.766...e-05
org-export-grab-title-from-buffer 1 5.1e-05 5.1e-05
org-export-html-get-bibliography 1 4.6e-05 4.6e-05
org-get-string-indentation 9 4.4e-05 4.888...e-06
org-before-change-function 14 4e-05 2.857...e-06
org-export-remove-comment-blocks-and-subtrees 1 3.9e-05 3.9e-05
org-export-preprocess-apply-macros 1 3.7e-05 3.7e-05
org-add-hook 4 3.6e-05 9e-06
org-add-props 10 3.499...e-05 3.499...e-06
org-babel-exp-lob-one-liners 1 3.1e-05 3.1e-05
org-all-targets 1 3e-05 3e-05
org-export-handle-invisible-targets 1 2.8e-05 2.8e-05
org-export-concatenate-multiline-links 1 2.8e-05 2.8e-05
org-export-remove-or-extract-drawers 1 2.7e-05 2.7e-05
org-export-handle-include-files 1 2.6e-05 2.6e-05
org-remove-file-link-modifiers 1 2.6e-05 2.6e-05
org-get-min-level 1 2.6e-05 2.6e-05
org-export-html-close-lists-maybe 10 2.500...e-05 2.500...e-06
org-export-protect-quoted-subtrees 1 2.5e-05 2.5e-05
org-babel-hide-all-hashes 1 2.5e-05 2.5e-05
org-export-mark-blockquote-verse-center 1 2.4e-05 2.4e-05
org-solidify-link-text 1 2.4e-05 2.4e-05
org-export-cleanup-toc-line 1 2.3e-05 2.3e-05
org-export-remember-html-container-classes 1 2.3e-05 2.3e-05
org-extract-log-state-settings 2 2.2e-05 1.1e-05
org-set-font-lock-defaults 1 2.2e-05 2.2e-05
org-set-autofill-regexps 1 2.2e-05 2.2e-05
org-export-handle-comments 1 2e-05 2e-05
org-export-remove-clock-lines 1 2e-05 2e-05
org-export-target-internal-links 1 2e-05 2e-05
org-unfontify-region 1 1.9e-05 1.9e-05
org-export-remove-special-table-lines 1 1.9e-05 1.9e-05
org-export-protect-colon-examples 1 1.8e-05 1.8e-05
org-add-to-invisibility-spec 4 1.500...e-05 3.750...e-06
org-assign-fast-keys 1 1.5e-05 1.5e-05
org-number-to-counter 3 1.5e-05 5e-06
org-combine-plists 1 1.5e-05 1.5e-05
org-export-process-option-filters 1 1.5e-05 1.5e-05
org-babel-result-hide-spec 1 1.3e-05 1.3e-05
org-find-text-property-in-string 5 1.3e-05 2.599...e-06
org-export-remove-archived-trees 1 1.1e-05 1.1e-05
org-outline-level 1 1.1e-05 1.1e-05
org-install-letbind 2 9e-06 4.5e-06
org-export-directory 2 9e-06 4.5e-06
org-export-html-insert-plist-item 2 9e-06 4.5e-06
org-html-level-close 1 7e-06 7e-06
org-tr-level 3 6.999...e-06 2.333...e-06
org-region-active-p 1 6e-06 6e-06
org-mode-flyspell-verify 1 5e-06 5e-06
org-export-kill-licensed-text 1 5e-06 5e-06
org-infojs-handle-options 1 5e-06 5e-06
org-compute-latex-and-specials-regexp 1 5e-06 5e-06
org-reduced-level 1 5e-06 5e-06
org-get-text-property-any 2 4.999...e-06 2.499...e-06
org-load-modules-maybe 1 4e-06 4e-06
org-export-mark-radio-links 1 4e-06 4e-06
org-xor 1 4e-06 4e-06
org-delete-all 1 4e-06 4e-06
org-restart-font-lock 1 4e-06 4e-06
org-check-running-clock 1 3e-06 3e-06
org-make-target-link-regexp 1 3e-06 3e-06
** sizes
$ ls -lR
.:
total 24
-rw-r--r-- 1 nick nick 3613 2010-04-19 00:39 fragment.html
-rw-r--r-- 1 nick nick 314 2010-04-19 00:32 fragment.org
drwxr-xr-x 2 nick nick 4096 2010-04-19 00:39 ltxpng
-rw-r--r-- 1 nick nick 10723 2010-04-19 00:41 results.org
./ltxpng:
total 20
-rw-r--r-- 1 nick nick 503 2010-04-19 00:38 fragment_694e3a9052c42f86601c0d700419cf65e7c3ad17.png
-rw-r--r-- 1 nick nick 392 2010-04-19 00:38 fragment_95dbc6a36980cb25440b7af1d4c983ed518e81c1.png
-rw-r--r-- 1 nick nick 657 2010-04-19 00:39 fragment_c49952c1f91e75b18cb8adbce994df01745f30f1.png
-rw-r--r-- 1 nick nick 1208 2010-04-19 00:38 fragment_cc07cbfb5c8719e332ac40e8fd1c344afd2b5e5c.png
-rw-r--r-- 1 nick nick 635 2010-04-19 00:39 fragment_e160d689047a2e62dcb2952434606c0ed834a38a.png
* Org-mode version 6.34c (release_6.34c)
** profile
** sizes
[-- Attachment #3: Type: text/plain, Size: 201 bytes --]
_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode
next prev parent reply other threads:[~2010-04-19 5:30 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-15 16:38 Bug: create latex png while export to HTML become very slow [6.35i] Lucas Peng
2010-04-16 2:58 ` Carsten Dominik
2010-04-16 3:59 ` Nick Dokos
2010-04-16 11:51 ` Lucas Peng
2010-04-16 21:41 ` Bernt Hansen
2010-04-16 21:50 ` Nick Dokos
2010-04-16 21:52 ` Carsten Dominik
2010-04-16 22:42 ` Nick Dokos
2010-04-16 23:00 ` Bernt Hansen
2010-04-17 7:48 ` Lucas Peng
2010-04-19 5:30 ` Nick Dokos [this message]
2010-04-19 6:02 ` Nick Dokos
2010-04-26 14:58 ` Carsten Dominik
2010-04-26 16:46 ` Nick Dokos
2010-04-26 16:54 ` Carsten Dominik
2010-04-27 2:41 ` Nick Dokos
2010-04-16 21:54 ` Sebastian Rose
2010-04-27 5:51 ` Carsten Dominik
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=23201.1271655020@gamaville.dokosmarshall.org \
--to=nicholas.dokos@hp.com \
--cc=bernt@norang.ca \
--cc=carsten.dominik@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=lucasp0927@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).