From: Carsten Dominik <carsten.dominik@gmail.com>
To: nicholas.dokos@hp.com
Cc: Bernt Hansen <bernt@norang.ca>,
emacs-orgmode@gnu.org, Lucas Peng <lucasp0927@gmail.com>
Subject: Re: Re: Bug: create latex png while export to HTML become very slow [6.35i]
Date: Mon, 26 Apr 2010 16:58:10 +0200 [thread overview]
Message-ID: <1F80CC02-17F0-4136-A95D-37F84EBD0FA3@gmail.com> (raw)
In-Reply-To: <24036.1271656972@gamaville.dokosmarshall.org>
Nick,
do you have time to do the following exercise?
Remove the entries in org-export-latex-default-packages-alist
one by one to see which packages are the worst offenders?
That would be a great help.
- Carsten
On Apr 19, 2010, at 8:02 AM, Nick Dokos wrote:
> Nick Dokos <nicholas.dokos@hp.com> wrote:
>
>> ...
>> 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.
>>
>
> The results file was incomplete: I forgot to save the file before
> sending it out - sorry about that. The complete results are attached
> here.
>
> 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
> 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
> org-export-push-to-kill-ring
> 2 0.009935 0.0049675
> org-kill-new
> 2 0.006721 0.0033605
> org-cycle
> 4 0.004513 0.00112825
> org-install-agenda-files-menu
> 4 0.003946 0.0009865
> org-html-expand
> 24 0.0034330000 0.0001430416
> org-cycle-internal-local
> 2 0.002828 0.001414
> org-html-do-expand
> 29 0.0026800000 9.241...e-05
> org-fit-window-to-buffer
> 2 0.002513 0.0012565
> org-agenda-files
> 4 0.0023940000 0.0005985000
> org-set-startup-visibility
> 2 0.0015140000 0.0007570000
> org-set-regexps-and-options
> 4 0.001234 0.0003085
> org-optimize-window-after-visibility-change
> 4 0.0011450000 0.0002862500
> org-subtree-end-visible-p
> 2 0.001106 0.000553
> org-file-image-p
> 5 0.0010450000 0.0002090000
> org-infile-export-plist
> 5 0.001035 0.000207
> org-image-file-name-regexp
> 5 0.00094 0.000188
> org-cycle-internal-global
> 2 0.0008129999 0.0004064999
> org-default-export-plist
> 2 0.000768 0.000384
> org-export-define-heading-targets
> 2 0.000643 0.0003215
> org-export-html-convert-sub-super
> 29 0.0006180000 2.131...e-05
> org-end-of-subtree
> 10 0.000618 6.18e-05
> org-export-normalize-links
> 2 0.000607 0.0003035
> org-html-handle-time-stamps
> 18 0.0006009999 3.338...e-05
> org-export-blocks-preprocess
> 2 0.000334 0.000167
> org-html-level-start
> 4 0.000304 7.6e-05
> org-cycle-hide-archived-subtrees
> 6 0.000292 4.866...e-05
> org-export-html-convert-emphasize
> 29 0.000291 1.003...e-05
> org-overview
> 2 0.00028 0.00014
> org-link-unescape
> 10 0.0002619999 2.619...e-05
> org-cycle-show-empty-lines
> 6 0.000257 4.283...e-05
> org-export-html-convert-special-strings
> 29 0.000256 8.827...e-06
> org-footnote-normalize
> 2 0.000235 0.0001175
> org-file-menu-entry
> 60 0.0002339999 3.899...e-06
> org-cycle-hide-drawers
> 6 0.0002200000 3.666...e-05
> org-activate-footnote-links
> 2 0.0002170000 0.0001085000
> org-open-par
> 11 0.000217 1.972...e-05
> org-make-options-regexp
> 9 0.000214 2.377...e-05
> org-export-attach-captions-and-attributes
> 2 0.0002130000 0.0001065000
> org-update-radio-target-regexp
> 4 0.000213 5.325e-05
> org-export-html-format-image
> 5 0.000213 4.26e-05
> org-activate-plain-links
> 2 0.000193 9.65e-05
> org-section-number
> 6 0.0001880000 3.133...e-05
> org-export-remove-headline-metadata
> 2 0.000179 8.95e-05
> org-html-protect
> 29 0.0001680000 5.793...e-06
> org-back-to-heading
> 14 0.000166 1.185...e-05
> org-export-select-backend-specific-text
> 2 0.000163 8.15e-05
> org-babel-hide-result-toggle-maybe
> 4 0.000163 4.075e-05
> org-show-subtree
> 2 0.000161 8.05e-05
> org-do-emphasis-faces
> 2 0.000161 8.05e-05
> org-export-protect-verbatim
> 2 0.0001599999 7.999...e-05
> org-export-concatenate-multiline-emphasis
> 2 0.0001590000 7.950...e-05
> org-add-hook
> 16 0.0001390000 8.687...e-06
> org-export-replace-src-segments-and-examples
> 2 0.000139 6.95e-05
> org-export-html-get-bibliography
> 2 0.000128 6.4e-05
> org-split-string
> 10 0.0001180000 1.180...e-05
> org-close-par-maybe
> 15 0.0001180000 7.866...e-06
> org-export-handle-export-tags
> 2 0.000117 5.85e-05
> org-babel-exp-inline-src-blocks
> 2 0.000116 5.8e-05
> org-outline-level
> 18 0.0001139999 6.333...e-06
> org-extract-attributes
> 5 0.000105 2.100...e-05
> org-all-targets
> 4 0.0001029999 2.574...e-05
> org-babel-hide-all-hashes
> 4 9.800...e-05 2.450...e-05
> org-get-string-indentation
> 16 9.7e-05 6.0625e-06
> org-init-section-numbers
> 6 9.7e-05 1.616...e-05
> org-extract-log-state-settings
> 8 8.800...e-05 1.100...e-05
> org-set-font-lock-defaults
> 4 8.499...e-05 2.124...e-05
> org-hide-block-toggle-maybe
> 4 8.3e-05 2.075e-05
> org-cycle-level
> 4 8.1e-05 2.025e-05
> org-export-grab-title-from-buffer
> 2 7.8e-05 3.9e-05
> org-set-autofill-regexps
> 4 7.000...e-05 1.750...e-05
> org-at-item-p
> 4 7e-05 1.75e-05
> org-cycle-item-indentation
> 4 6.2e-05 1.55e-05
> org-unfontify-region
> 4 5.9e-05 1.475e-05
> org-export-remove-comment-blocks-and-subtrees
> 2 5.9e-05 2.95e-05
> org-looking-back
> 4 5.9e-05 1.475e-05
> org-fontify-meta-lines-and-blocks
> 2 5.8e-05 2.9e-05
> org-assign-fast-keys
> 4 5.699...e-05 1.424...e-05
> org-export-preprocess-apply-macros
> 2 5.600...e-05 2.800...e-05
> org-add-to-invisibility-spec
> 16 5.600...e-05 3.500...e-06
> org-export-html-close-lists-maybe
> 18 5.299...e-05 2.944...e-06
> org-hide-archived-subtrees
> 4 5.1e-05 1.275e-05
> org-set-visibility-according-to-property
> 2 5e-05 2.5e-05
> org-babel-result-hide-spec
> 4 4.9e-05 1.225e-05
> org-export-cleanup-toc-line
> 2 4.8e-05 2.4e-05
> org-at-table-p
> 4 4.799...e-05 1.199...e-05
> org-export-remove-or-extract-drawers
> 2 4.700...e-05 2.350...e-05
> org-export-handle-comments
> 2 4.5e-05 2.25e-05
> org-before-change-function
> 18 4.5e-05 2.5e-06
> org-babel-exp-lob-one-liners
> 2 4.499...e-05 2.249...e-05
> org-get-min-level
> 2 4.4e-05 2.2e-05
> org-activate-dates
> 2 4.3e-05 2.15e-05
> org-activate-angle-links
> 2 4.3e-05 2.15e-05
> org-combine-plists
> 2 4.200...e-05 2.100...e-05
> org-export-handle-invisible-targets
> 2 4.2e-05 2.1e-05
> org-export-concatenate-multiline-links
> 2 4.2e-05 2.1e-05
> org-export-handle-include-files
> 2 4.1e-05 2.05e-05
> org-remove-file-link-modifiers
> 2 4.1e-05 2.05e-05
> org-export-protect-quoted-subtrees
> 2 3.9e-05 1.95e-05
> org-solidify-link-text
> 2 3.9e-05 1.95e-05
> org-export-mark-blockquote-verse-center
> 2 3.8e-05 1.9e-05
> org-activate-tags
> 2 3.6e-05 1.8e-05
> org-mode-flyspell-verify
> 7 3.3e-05 4.714...e-06
> org-delete-all
> 4 3.299...e-05 8.249...e-06
> org-number-to-counter
> 6 3.2e-05 5.333...e-06
> org-export-target-internal-links
> 2 3.000...e-05 1.500...e-05
> org-export-remove-clock-lines
> 2 3e-05 1.5e-05
> org-export-process-option-filters
> 2 3e-05 1.5e-05
> org-load-modules-maybe
> 8 2.999...e-05 3.749...e-06
> org-activate-code
> 2 2.8e-05 1.4e-05
> org-export-remove-special-table-lines
> 2 2.7e-05 1.35e-05
> org-export-protect-colon-examples
> 2 2.7e-05 1.35e-05
> org-get-level-face
> 6 2.7e-05 4.5e-06
> org-activate-bracket-links
> 2 2.4e-05 1.2e-05
> org-add-props
> 5 2.4e-05 4.8e-06
> org-compute-latex-and-specials-regexp
> 4 2.1e-05 5.25e-06
> org-html-level-close
> 2 1.999...e-05 9.999...e-06
> org-export-html-insert-plist-item
> 4 1.9e-05 4.75e-06
> org-font-lock-add-priority-faces
> 2 1.8e-05 9e-06
> org-export-remove-archived-trees
> 2 1.600...e-05 8.000...e-06
> org-at-heading-p
> 2 1.6e-05 8e-06
> org-export-directory
> 4 1.6e-05 4e-06
> org-install-letbind
> 4 1.399...e-05 3.499...e-06
> org-restart-font-lock
> 4 1.300...e-05 3.250...e-06
> org-tr-level
> 6 1.3e-05 2.166...e-06
> org-region-active-p
> 2 1.2e-05 6e-06
> org-make-target-link-regexp
> 4 1.1e-05 2.75e-06
> org-hide-wide-columns
> 2 1.1e-05 5.5e-06
> org-infojs-handle-options
> 2 1e-05 5e-06
> org-check-running-clock
> 3 9e-06 3e-06
> org-export-kill-licensed-text
> 2 9e-06 4.5e-06
> org-xor
> 2 8e-06 4e-06
> org-do-latex-and-special-faces
> 2 7e-06 3.5e-06
> org-reduced-level
> 2 7e-06 3.5e-06
> org-export-mark-radio-links
> 2 6e-06 3e-06
> org-font-lock-hook
> 2 6e-06 3e-06
> org-activate-target-links
> 2 6e-06 3e-06
> org-font-lock-add-tag-faces
> 2 6e-06 3e-06
> org-get-text-property-any
> 2 4.999...e-06 2.499...e-06
>
> ** sizes
>
> nick@gamaville:~/src/org/lucas$ ls -lR
> .:
> total 36
> -rw-r--r-- 1 nick nick 3429 2010-04-19 01:00 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 01:00 ltxpng
> -rw-r--r-- 1 nick nick 11576 2010-04-19 00:55 results.org
> -rw-r--r-- 1 nick nick 10723 2010-04-19 00:41 results.org~
>
> ./ltxpng:
> total 20
> -rw-r--r-- 1 nick nick 277 2010-04-19 01:00
> fragment_0ad7b6b4b2590ae3cb85db823f6b07b64e55132f.png
> -rw-r--r-- 1 nick nick 367 2010-04-19 01:00
> fragment_1be753d7da36fd9fede8bf75699ea9b79d29e4c3.png
> -rw-r--r-- 1 nick nick 391 2010-04-19 01:00
> fragment_58c411daec2c7a86106b32aed115e5c1d696066b.png
> -rw-r--r-- 1 nick nick 325 2010-04-19 01:00
> fragment_6d62b7ed19569ae57e4f7887ba034821e1e1ec78.png
> -rw-r--r-- 1 nick nick 541 2010-04-19 01:00
> fragment_9465d9a821b24f3fb783e335149c9de4fba6e777.png
- Carsten
next prev parent reply other threads:[~2010-04-26 14:58 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
2010-04-19 6:02 ` Nick Dokos
2010-04-26 14:58 ` Carsten Dominik [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1F80CC02-17F0-4136-A95D-37F84EBD0FA3@gmail.com \
--to=carsten.dominik@gmail.com \
--cc=bernt@norang.ca \
--cc=emacs-orgmode@gnu.org \
--cc=lucasp0927@gmail.com \
--cc=nicholas.dokos@hp.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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.