[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Orgmode] Re: Bug: create latex png while export to HTML become very
From: |
Nick Dokos |
Subject: |
Re: [Orgmode] Re: Bug: create latex png while export to HTML become very slow [6.35i] |
Date: |
Mon, 19 Apr 2010 01:30:20 -0400 |
Lucas Peng <address@hidden> 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
* 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
- [Orgmode] Bug: create latex png while export to HTML become very slow [6.35i], Lucas Peng, 2010/04/15
- Re: [Orgmode] Bug: create latex png while export to HTML become very slow [6.35i], Carsten Dominik, 2010/04/15
- Re: [Orgmode] Bug: create latex png while export to HTML become very slow [6.35i], Nick Dokos, 2010/04/15
- Re: [Orgmode] Bug: create latex png while export to HTML become very slow [6.35i], Lucas Peng, 2010/04/16
- [Orgmode] Re: Bug: create latex png while export to HTML become very slow [6.35i], Bernt Hansen, 2010/04/16
- Re: [Orgmode] Re: Bug: create latex png while export to HTML become very slow [6.35i], Nick Dokos, 2010/04/16
- Re: [Orgmode] Re: Bug: create latex png while export to HTML become very slow [6.35i], Carsten Dominik, 2010/04/16
- Re: [Orgmode] Re: Bug: create latex png while export to HTML become very slow [6.35i], Nick Dokos, 2010/04/16
- Re: [Orgmode] Re: Bug: create latex png while export to HTML become very slow [6.35i], Bernt Hansen, 2010/04/16
- Re: [Orgmode] Re: Bug: create latex png while export to HTML become very slow [6.35i], Lucas Peng, 2010/04/17
- Re: [Orgmode] Re: Bug: create latex png while export to HTML become very slow [6.35i],
Nick Dokos <=
- Re: [Orgmode] Re: Bug: create latex png while export to HTML become very slow [6.35i], Nick Dokos, 2010/04/19
- Re: [Orgmode] Re: Bug: create latex png while export to HTML become very slow [6.35i], Carsten Dominik, 2010/04/26
- Re: [Orgmode] Re: Bug: create latex png while export to HTML become very slow [6.35i], Nick Dokos, 2010/04/26
- Re: [Orgmode] Re: Bug: create latex png while export to HTML become very slow [6.35i], Carsten Dominik, 2010/04/26
- Re: [Orgmode] Re: Bug: create latex png while export to HTML become very slow [6.35i], Nick Dokos, 2010/04/26
- Re: [Orgmode] Re: Bug: create latex png while export to HTML become very slow [6.35i], Sebastian Rose, 2010/04/16
Re: [Orgmode] Bug: create latex png while export to HTML become very slow [6.35i], Carsten Dominik, 2010/04/27