emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Bug: create latex png while export to HTML become very slow [6.35i]
@ 2010-04-15 16:38 Lucas Peng
  2010-04-16  2:58 ` Carsten Dominik
  2010-04-27  5:51 ` Carsten Dominik
  0 siblings, 2 replies; 18+ messages in thread
From: Lucas Peng @ 2010-04-15 16:38 UTC (permalink / raw)
  To: emacs-orgmode


Remember to cover the basics, that is, what you expected to happen and
what in fact did happen.  You don't know how to make a good report?  See

     http://orgmode.org/manual/Feedback.html#Feedback

Your bug report will be posted to the Org-mode mailing list.
------------------------------------------------------------------------

After upgrade to 6.35i, export .org file with latex fragment become
extremly slow.

Emacs  : GNU Emacs 23.1.95.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.20.0)
 of 2010-04-05 on lucaspeng-laptop
Package: Org-mode version 6.35i

current state:
==============
(setq
 org-export-with-LaTeX-fragments t
 org-export-latex-after-initial-vars-hook '(org-beamer-after-initial-vars)
 org-agenda-custom-commands '(("h" "HomeWorks"
			       ((agenda "") (tags "HOMEWORK") (tags "STUDY")))
			      )
 org-agenda-files '("~/homework/wiki/todo.org")
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 outline-minor-mode-prefix [(control o)]
 org-export-latex-format-toc-function 'org-export-latex-format-toc-default
 org-export-preprocess-hook '(org-export-blocks-preprocess)
 org-tab-first-hook '(org-hide-block-toggle-maybe)
 org-src-mode-hook '(org-src-mode-configure-edit-buffer)
 org-confirm-shell-link-function 'yes-or-no-p
 org-export-first-hook '(org-beamer-initialize-open-trackers)
 org-agenda-include-all-todo t
 org-todo-keywords '("TODO" "STARTED" "DONE")
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers
		  org-cycle-show-empty-lines
		  org-optimize-window-after-visibility-change)
 org-publish-project-alist '(("wiki" :base-directory "~/WikiNotes/org/"
			      :base-extension "org" :publishing-directory
			      "~/WikiNotes/publish/" :recursive t
			      :publishing-function org-publish-org-to-html
			      :section-numbers nil :auto-preamble t
			      :table-of-contents nil :style
			      "<link rel='stylesheet' type='text/css' href='css/style.css' />" :style-include-default t :author-info nil :email-info nil :creator-info nil)
			     ("wiki2" :base-directory "~/WikiNotes/org/"
			      :base-extension
			      "css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg\\|swf" :publishing-directory "~/WikiNotes/publish/" :recursive t :publishing-function org-publish-attachment)
			     ("website" :components ("wiki" "wiki2")))
 org-export-preprocess-before-normalizing-links-hook '(org-remove-file-link-modifiers)
 org-mode-hook '(#[nil "\300\301\302\303\304$\207"
		   [org-add-hook change-major-mode-hook org-show-block-all
		    append local]
		   5]
		 turn-on-org-cdlatex)
 org-confirm-elisp-link-function 'yes-or-no-p
 org-occur-hook '(org-first-headline-recenter)
 org-export-preprocess-before-selecting-backend-code-hook '(org-beamer-select-beamer-code)
 org-remember-templates '(("Tasks" 116 "* TODO %?\n  %i\n  %a"
			   "/home/lucaspeng/homework/wiki/todo.org" nil)
			  ("Appointments" 97
			   "* Appointment: %?\n%^T\n%i\n  %a"
			   "~/organizer.org" nil)
			  )
 org-export-latex-final-hook '(org-beamer-amend-header org-beamer-fix-toc
			       org-beamer-auto-fragile-frames
			       org-beamer-place-default-actions-for-lists)
 )

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: Bug: create latex png while export to HTML become very slow [6.35i]
  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-27  5:51 ` Carsten Dominik
  1 sibling, 1 reply; 18+ messages in thread
From: Carsten Dominik @ 2010-04-16  2:58 UTC (permalink / raw)
  To: Lucas Peng; +Cc: emacs-orgmode


On Apr 15, 2010, at 6:38 PM, Lucas Peng wrote:

>
> Remember to cover the basics, that is, what you expected to happen and
> what in fact did happen.  You don't know how to make a good report?   
> See
>
>     http://orgmode.org/manual/Feedback.html#Feedback
>
> Your bug report will be posted to the Org-mode mailing list.
> ------------------------------------------------------------------------
>
> After upgrade to 6.35i, export .org file with latex fragment become
> extremly slow.

Has anybody else noticed this?

Thanks.

- Carsten


>
> Emacs  : GNU Emacs 23.1.95.1 (x86_64-unknown-linux-gnu, GTK+ Version  
> 2.20.0)
> of 2010-04-05 on lucaspeng-laptop
> Package: Org-mode version 6.35i
>
> current state:
> ==============
> (setq
> org-export-with-LaTeX-fragments t
> org-export-latex-after-initial-vars-hook '(org-beamer-after-initial- 
> vars)
> org-agenda-custom-commands '(("h" "HomeWorks"
> 			       ((agenda "") (tags "HOMEWORK") (tags "STUDY")))
> 			      )
> org-agenda-files '("~/homework/wiki/todo.org")
> org-after-todo-state-change-hook '(org-clock-out-if-current)
> outline-minor-mode-prefix [(control o)]
> org-export-latex-format-toc-function 'org-export-latex-format-toc- 
> default
> org-export-preprocess-hook '(org-export-blocks-preprocess)
> org-tab-first-hook '(org-hide-block-toggle-maybe)
> org-src-mode-hook '(org-src-mode-configure-edit-buffer)
> org-confirm-shell-link-function 'yes-or-no-p
> org-export-first-hook '(org-beamer-initialize-open-trackers)
> org-agenda-include-all-todo t
> org-todo-keywords '("TODO" "STARTED" "DONE")
> org-agenda-before-write-hook '(org-agenda-add-entry-text)
> org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide- 
> drawers
> 		  org-cycle-show-empty-lines
> 		  org-optimize-window-after-visibility-change)
> org-publish-project-alist '(("wiki" :base-directory "~/WikiNotes/org/"
> 			      :base-extension "org" :publishing-directory
> 			      "~/WikiNotes/publish/" :recursive t
> 			      :publishing-function org-publish-org-to-html
> 			      :section-numbers nil :auto-preamble t
> 			      :table-of-contents nil :style
> 			      "<link rel='stylesheet' type='text/css' href='css/ 
> style.css' />" :style-include-default t :author-info nil :email-info  
> nil :creator-info nil)
> 			     ("wiki2" :base-directory "~/WikiNotes/org/"
> 			      :base-extension
> 			      "css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg\\| 
> swf" :publishing-directory "~/WikiNotes/publish/" :recursive  
> t :publishing-function org-publish-attachment)
> 			     ("website" :components ("wiki" "wiki2")))
> org-export-preprocess-before-normalizing-links-hook '(org-remove- 
> file-link-modifiers)
> org-mode-hook '(#[nil "\300\301\302\303\304$\207"
> 		   [org-add-hook change-major-mode-hook org-show-block-all
> 		    append local]
> 		   5]
> 		 turn-on-org-cdlatex)
> org-confirm-elisp-link-function 'yes-or-no-p
> org-occur-hook '(org-first-headline-recenter)
> org-export-preprocess-before-selecting-backend-code-hook '(org- 
> beamer-select-beamer-code)
> org-remember-templates '(("Tasks" 116 "* TODO %?\n  %i\n  %a"
> 			   "/home/lucaspeng/homework/wiki/todo.org" nil)
> 			  ("Appointments" 97
> 			   "* Appointment: %?\n%^T\n%i\n  %a"
> 			   "~/organizer.org" nil)
> 			  )
> org-export-latex-final-hook '(org-beamer-amend-header org-beamer-fix- 
> toc
> 			       org-beamer-auto-fragile-frames
> 			       org-beamer-place-default-actions-for-lists)
> )
>
>
> _______________________________________________
> 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

- Carsten

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: Bug: create latex png while export to HTML become very slow [6.35i]
  2010-04-16  2:58 ` Carsten Dominik
@ 2010-04-16  3:59   ` Nick Dokos
  2010-04-16 11:51     ` Lucas Peng
  0 siblings, 1 reply; 18+ messages in thread
From: Nick Dokos @ 2010-04-16  3:59 UTC (permalink / raw)
  To: Lucas Peng; +Cc: nicholas.dokos, emacs-orgmode, Carsten Dominik

Carsten Dominik <carsten.dominik@gmail.com> wrote:

> 
> On Apr 15, 2010, at 6:38 PM, Lucas Peng wrote:
> 
> > ------------------------------------------------------------------------
> >
> > After upgrade to 6.35i, export .org file with latex fragment become
> > extremly slow.
> 
> Has anybody else noticed this?
> 

I don't think so but I have some questions for Lucas:

o what's 6.35i? I just pulled and I get "Org-mode version 6.35trans (release_6.35g.54.g69402)"

o exporting to what? LaTeX? HTML? If the latter, are you talking about
  the time that dvipng takes to make the images ? That is indeed long,
  (see below) but I doubt it has changed very much from one org version
  to the next.

An example org file and some measurements of how much time it took before
and how much time it takes now would be helpful in determining what
the problem is (if there is one).

E.g. the following file (pretty much straight from the Org manual) took
about 8 seconds to be exported the first time (after the images are
cached, exporting again is instant) with the current version of org:

,----
| 
| * 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 exact time will vary a bit depending on the machine, emacs versions
and various other factors of course. What times do you get?

Thanks,
Nick

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: Bug: create latex png while export to HTML become very slow [6.35i]
  2010-04-16  3:59   ` Nick Dokos
@ 2010-04-16 11:51     ` Lucas Peng
  2010-04-16 21:41       ` Bernt Hansen
  0 siblings, 1 reply; 18+ messages in thread
From: Lucas Peng @ 2010-04-16 11:51 UTC (permalink / raw)
  To: nicholas.dokos; +Cc: emacs-orgmode, Carsten Dominik

Thanks for your prompt response,

1. I get "Org-mode version 6.35i" with M-x org-version.

2. I am exporting my personal wiki page with latex math to HTML.

3. It took me 28 seconds to export the file Nick metioned with 6.35i.
    But only 5 seconds with 6.34c.

    BTW I am using Ubuntu 10.04 beta2 and emacs23.

Thanks,
Lucas

On Fri, Apr 16, 2010 at 11:59 AM, Nick Dokos <nicholas.dokos@hp.com> wrote:
> Carsten Dominik <carsten.dominik@gmail.com> wrote:
>
>>
>> On Apr 15, 2010, at 6:38 PM, Lucas Peng wrote:
>>
>> > ------------------------------------------------------------------------
>> >
>> > After upgrade to 6.35i, export .org file with latex fragment become
>> > extremly slow.
>>
>> Has anybody else noticed this?
>>
>
> I don't think so but I have some questions for Lucas:
>
> o what's 6.35i? I just pulled and I get "Org-mode version 6.35trans (release_6.35g.54.g69402)"
>
> o exporting to what? LaTeX? HTML? If the latter, are you talking about
>  the time that dvipng takes to make the images ? That is indeed long,
>  (see below) but I doubt it has changed very much from one org version
>  to the next.
>
> An example org file and some measurements of how much time it took before
> and how much time it takes now would be helpful in determining what
> the problem is (if there is one).
>
> E.g. the following file (pretty much straight from the Org manual) took
> about 8 seconds to be exported the first time (after the images are
> cached, exporting again is instant) with the current version of org:
>
> ,----
> |
> | * 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 exact time will vary a bit depending on the machine, emacs versions
> and various other factors of course. What times do you get?
>
> Thanks,
> Nick
>
>
>

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: Bug: create latex png while export to HTML become very slow [6.35i]
  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:54         ` Sebastian Rose
  0 siblings, 2 replies; 18+ messages in thread
From: Bernt Hansen @ 2010-04-16 21:41 UTC (permalink / raw)
  To: Lucas Peng; +Cc: nicholas.dokos, emacs-orgmode, Carsten Dominik

Lucas Peng <lucasp0927@gmail.com> writes:

> Thanks for your prompt response,
>
> 1. I get "Org-mode version 6.35i" with M-x org-version.

Strange.  The current latest tagged version in the git repo is release_6.35g

We haven't gotten to 'i' yet unless you've come back from the future ;)

-Bernt

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: Re: Bug: create latex png while export to HTML become very slow [6.35i]
  2010-04-16 21:41       ` Bernt Hansen
@ 2010-04-16 21:50         ` Nick Dokos
  2010-04-16 21:52           ` Carsten Dominik
  2010-04-16 21:54         ` Sebastian Rose
  1 sibling, 1 reply; 18+ messages in thread
From: Nick Dokos @ 2010-04-16 21:50 UTC (permalink / raw)
  To: Bernt Hansen; +Cc: nicholas.dokos, emacs-orgmode, Carsten Dominik, Lucas Peng

Bernt Hansen <bernt@norang.ca> wrote:

> Lucas Peng <lucasp0927@gmail.com> writes:
> 
> > Thanks for your prompt response,
> >
> > 1. I get "Org-mode version 6.35i" with M-x org-version.
> 
> Strange.  The current latest tagged version in the git repo is release_6.35g
> 
> We haven't gotten to 'i' yet unless you've come back from the future ;)
> 

I was confused by that too, but the tarball on the website says 6.35i, so
my guess was that Carsten forgot to add tags to the git tree.

Nick

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: Re: Bug: create latex png while export to HTML become very slow [6.35i]
  2010-04-16 21:50         ` Nick Dokos
@ 2010-04-16 21:52           ` Carsten Dominik
  2010-04-16 22:42             ` Nick Dokos
  0 siblings, 1 reply; 18+ messages in thread
From: Carsten Dominik @ 2010-04-16 21:52 UTC (permalink / raw)
  To: nicholas.dokos; +Cc: Bernt Hansen, emacs-orgmode, Lucas Peng


On Apr 16, 2010, at 11:50 PM, Nick Dokos wrote:

> Bernt Hansen <bernt@norang.ca> wrote:
>
>> Lucas Peng <lucasp0927@gmail.com> writes:
>>
>>> Thanks for your prompt response,
>>>
>>> 1. I get "Org-mode version 6.35i" with M-x org-version.
>>
>> Strange.  The current latest tagged version in the git repo is  
>> release_6.35g
>>
>> We haven't gotten to 'i' yet unless you've come back from the  
>> future ;)
>>
>
> I was confused by that too, but the tarball on the website says  
> 6.35i, so
> my guess was that Carsten forgot to add tags to the git tree.


The tags are there, but I pushed them from a branch.


- Carsten

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: Re: Bug: create latex png while export to HTML become very slow [6.35i]
  2010-04-16 21:41       ` Bernt Hansen
  2010-04-16 21:50         ` Nick Dokos
@ 2010-04-16 21:54         ` Sebastian Rose
  1 sibling, 0 replies; 18+ messages in thread
From: Sebastian Rose @ 2010-04-16 21:54 UTC (permalink / raw)
  To: Bernt Hansen; +Cc: nicholas.dokos, emacs-orgmode, Carsten Dominik, Lucas Peng

Bernt Hansen <bernt@norang.ca> writes:
> Lucas Peng <lucasp0927@gmail.com> writes:
>
>> Thanks for your prompt response,
>>
>> 1. I get "Org-mode version 6.35i" with M-x org-version.
>
> Strange.  The current latest tagged version in the git repo is release_6.35g
>
> We haven't gotten to 'i' yet unless you've come back from the future ;)

Obviously, there's a piece of evidence!
Could save Carsten a lot of work, if you send him that.
Some here might be interested in all those new features, too!!

  :-D


  Sebastian

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: Re: Bug: create latex png while export to HTML become very slow [6.35i]
  2010-04-16 21:52           ` Carsten Dominik
@ 2010-04-16 22:42             ` Nick Dokos
  2010-04-16 23:00               ` Bernt Hansen
  0 siblings, 1 reply; 18+ messages in thread
From: Nick Dokos @ 2010-04-16 22:42 UTC (permalink / raw)
  To: Carsten Dominik; +Cc: Bernt Hansen, nicholas.dokos, emacs-orgmode, Lucas Peng

Carsten Dominik <carsten.dominik@gmail.com> wrote:

> 
> On Apr 16, 2010, at 11:50 PM, Nick Dokos wrote:
> 
> > Bernt Hansen <bernt@norang.ca> wrote:
> >
> >> Lucas Peng <lucasp0927@gmail.com> writes:
> >>
> >>> Thanks for your prompt response,
> >>>
> >>> 1. I get "Org-mode version 6.35i" with M-x org-version.
> >>
> >> Strange.  The current latest tagged version in the git repo is
> >> release_6.35g
> >>
> >> We haven't gotten to 'i' yet unless you've come back from the
> >> future ;)
> >>
> >
> > I was confused by that too, but the tarball on the website says
> > 6.35i, so
> > my guess was that Carsten forgot to add tags to the git tree.
> 
> 
> The tags are there, but I pushed them from a branch.
> 
> 

Indeed they are. I did ``git fetch --tags'' to get them.

Thanks,
Nick

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: Re: Bug: create latex png while export to HTML become very slow [6.35i]
  2010-04-16 22:42             ` Nick Dokos
@ 2010-04-16 23:00               ` Bernt Hansen
  2010-04-17  7:48                 ` Lucas Peng
  0 siblings, 1 reply; 18+ messages in thread
From: Bernt Hansen @ 2010-04-16 23:00 UTC (permalink / raw)
  To: nicholas.dokos; +Cc: Lucas Peng, emacs-orgmode, Carsten Dominik

Nick Dokos <nicholas.dokos@hp.com> writes:

> Carsten Dominik <carsten.dominik@gmail.com> wrote:
>
>> 
>> On Apr 16, 2010, at 11:50 PM, Nick Dokos wrote:
>> 
>> > Bernt Hansen <bernt@norang.ca> wrote:
>> >
>> >> Lucas Peng <lucasp0927@gmail.com> writes:
>> >>
>> >>> Thanks for your prompt response,
>> >>>
>> >>> 1. I get "Org-mode version 6.35i" with M-x org-version.
>> >>
>> >> Strange.  The current latest tagged version in the git repo is
>> >> release_6.35g
>> >>
>> >> We haven't gotten to 'i' yet unless you've come back from the
>> >> future ;)
>> >>
>> >
>> > I was confused by that too, but the tarball on the website says
>> > 6.35i, so
>> > my guess was that Carsten forgot to add tags to the git tree.
>> 
>> 
>> The tags are there, but I pushed them from a branch.
>> 
>> 
>
> Indeed they are. I did ``git fetch --tags'' to get them.

Hmmm.  Yes they are.  Ah they are on a separate branch that master
doesn't reference.  Sorry for the noise.

-Bernt

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: Re: Bug: create latex png while export to HTML become very slow [6.35i]
  2010-04-16 23:00               ` Bernt Hansen
@ 2010-04-17  7:48                 ` Lucas Peng
  2010-04-19  5:30                   ` Nick Dokos
  0 siblings, 1 reply; 18+ messages in thread
From: Lucas Peng @ 2010-04-17  7:48 UTC (permalink / raw)
  To: Bernt Hansen; +Cc: nicholas.dokos, emacs-orgmode, Carsten Dominik


[-- Attachment #1.1: Type: text/plain, Size: 416 bytes --]

Hello,

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

Thanks,
Lucas

[-- Attachment #1.2: Type: text/html, Size: 568 bytes --]

[-- Attachment #2: 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

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: Re: Bug: create latex png while export to HTML become very slow [6.35i]
  2010-04-17  7:48                 ` Lucas Peng
@ 2010-04-19  5:30                   ` Nick Dokos
  2010-04-19  6:02                     ` Nick Dokos
  0 siblings, 1 reply; 18+ messages in thread
From: Nick Dokos @ 2010-04-19  5:30 UTC (permalink / raw)
  To: Lucas Peng; +Cc: Bernt Hansen, nicholas.dokos, emacs-orgmode, Carsten Dominik

[-- 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

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: Re: Bug: create latex png while export to HTML become very slow [6.35i]
  2010-04-19  5:30                   ` Nick Dokos
@ 2010-04-19  6:02                     ` Nick Dokos
  2010-04-26 14:58                       ` Carsten Dominik
  0 siblings, 1 reply; 18+ messages in thread
From: Nick Dokos @ 2010-04-19  6:02 UTC (permalink / raw)
  To: nicholas.dokos; +Cc: Bernt Hansen, Carsten Dominik, emacs-orgmode, Lucas Peng

[-- Attachment #1: Type: text/plain, Size: 410 bytes --]

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


[-- Attachment #2: Profiling (and size) results --]
[-- Type: text/plain, Size: 26679 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
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

[-- 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

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: Re: Bug: create latex png while export to HTML become very slow [6.35i]
  2010-04-19  6:02                     ` Nick Dokos
@ 2010-04-26 14:58                       ` Carsten Dominik
  2010-04-26 16:46                         ` Nick Dokos
  2010-04-27  2:41                         ` Nick Dokos
  0 siblings, 2 replies; 18+ messages in thread
From: Carsten Dominik @ 2010-04-26 14:58 UTC (permalink / raw)
  To: nicholas.dokos; +Cc: Bernt Hansen, emacs-orgmode, Lucas Peng

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

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: Re: Bug: create latex png while export to HTML become very slow [6.35i]
  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
  1 sibling, 1 reply; 18+ messages in thread
From: Nick Dokos @ 2010-04-26 16:46 UTC (permalink / raw)
  To: Carsten Dominik; +Cc: Bernt Hansen, nicholas.dokos, emacs-orgmode, Lucas Peng

Carsten Dominik <carsten.dominik@gmail.com> wrote:

> 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
> 

I can't do it immediately, but I'll try to do it later on tonight.

Nick

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: Re: Bug: create latex png while export to HTML become very slow [6.35i]
  2010-04-26 16:46                         ` Nick Dokos
@ 2010-04-26 16:54                           ` Carsten Dominik
  0 siblings, 0 replies; 18+ messages in thread
From: Carsten Dominik @ 2010-04-26 16:54 UTC (permalink / raw)
  To: nicholas.dokos; +Cc: Bernt Hansen, emacs-orgmode, Lucas Peng


On Apr 26, 2010, at 6:46 PM, Nick Dokos wrote:

> Carsten Dominik <carsten.dominik@gmail.com> wrote:
>
>> 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
>>
>
> I can't do it immediately, but I'll try to do it later on tonight.

Of course not immediately.  Any time would be a great help.

Thanks!

>
> Nick

- Carsten

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: Re: Bug: create latex png while export to HTML become very slow [6.35i]
  2010-04-26 14:58                       ` Carsten Dominik
  2010-04-26 16:46                         ` Nick Dokos
@ 2010-04-27  2:41                         ` Nick Dokos
  1 sibling, 0 replies; 18+ messages in thread
From: Nick Dokos @ 2010-04-27  2:41 UTC (permalink / raw)
  To: Carsten Dominik; +Cc: Bernt Hansen, nicholas.dokos, emacs-orgmode, Lucas Peng

Carsten Dominik <carsten.dominik@gmail.com> wrote:

> 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,

hyperref is the culprit: without it, the time for org-export-as-html
drop from about 9-9.5s to about 3.8s. I also tried a couple of combinations
(omit hyperref and inputenc, hyperref and inputenc and \tolerance) but the
difference there is in the noise. 


| Package omitted    | Time for org-export-as-html |
|--------------------+-----------------------------|
| none (before)      |                       13.49 |
| amssymb            |                        9.13 |
| latexsym           |                        9.33 |
| wasysym            |                        9.32 |
| marvosym           |                        9.32 |
| textcomp           |                        9.25 |
| t1enc              |                        9.43 |
| soul               |                        9.30 |
| wrapfig            |                        9.48 |
| float              |                        9.65 |
| longtable          |                        9.53 |
| graphicx           |                        9.45 |
| fixltx2e           |                        9.45 |
| hyperref           |                        3.84 |
| fontenc            |                        9.59 |
| inputenc           |                        9.08 |
| \tolerance         |                        9.07 |
| none (after)       |                        9.68 |
| none (after - 2nd) |                        9.77 |


The first "none" entry probably takes longer because of cold caches. The
"none" entries at the end of the table are more typical (and also give
an idea of typical variances). I repeated the no-hyperref measurement a
few times just to make sure: it always was around 3.8s. The rest of the
times are single-shot.

HTH,
Nick

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: Bug: create latex png while export to HTML become very slow [6.35i]
  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-27  5:51 ` Carsten Dominik
  1 sibling, 0 replies; 18+ messages in thread
From: Carsten Dominik @ 2010-04-27  5:51 UTC (permalink / raw)
  To: Lucas Peng; +Cc: emacs-orgmode

Hi Lucas,

thanks to some detective work by Ulf Stegemann and Nick Dokos we have  
now identified what was causing this slowdown.  The new LaTeX setup in  
6.35 led to the inclusion of more packages into the image generator.   
The worst offender was hyperref.

In the latest git head, this problem has been removed by adding  
switches to the settings in org-export-latex-default-packages-alist  
and org-export-latex-packages-alist, as to whether the package needs  
to be included for snippet image creation.

If you get the git version, or wait for 6.36 which will be release  
this weekend, HTML export of your files should basically happen at the  
old speeds again.

Thank you for your report, and thanks to everyone who helped resolving  
the issue.

- Carsten

On Apr 15, 2010, at 6:38 PM, Lucas Peng wrote:

>
> Remember to cover the basics, that is, what you expected to happen and
> what in fact did happen.  You don't know how to make a good report?   
> See
>
>     http://orgmode.org/manual/Feedback.html#Feedback
>
> Your bug report will be posted to the Org-mode mailing list.
> ------------------------------------------------------------------------
>
> After upgrade to 6.35i, export .org file with latex fragment become
> extremly slow.
>
> Emacs  : GNU Emacs 23.1.95.1 (x86_64-unknown-linux-gnu, GTK+ Version  
> 2.20.0)
> of 2010-04-05 on lucaspeng-laptop
> Package: Org-mode version 6.35i
>
> current state:
> ==============
> (setq
> org-export-with-LaTeX-fragments t
> org-export-latex-after-initial-vars-hook '(org-beamer-after-initial- 
> vars)
> org-agenda-custom-commands '(("h" "HomeWorks"
> 			       ((agenda "") (tags "HOMEWORK") (tags "STUDY")))
> 			      )
> org-agenda-files '("~/homework/wiki/todo.org")
> org-after-todo-state-change-hook '(org-clock-out-if-current)
> outline-minor-mode-prefix [(control o)]
> org-export-latex-format-toc-function 'org-export-latex-format-toc- 
> default
> org-export-preprocess-hook '(org-export-blocks-preprocess)
> org-tab-first-hook '(org-hide-block-toggle-maybe)
> org-src-mode-hook '(org-src-mode-configure-edit-buffer)
> org-confirm-shell-link-function 'yes-or-no-p
> org-export-first-hook '(org-beamer-initialize-open-trackers)
> org-agenda-include-all-todo t
> org-todo-keywords '("TODO" "STARTED" "DONE")
> org-agenda-before-write-hook '(org-agenda-add-entry-text)
> org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide- 
> drawers
> 		  org-cycle-show-empty-lines
> 		  org-optimize-window-after-visibility-change)
> org-publish-project-alist '(("wiki" :base-directory "~/WikiNotes/org/"
> 			      :base-extension "org" :publishing-directory
> 			      "~/WikiNotes/publish/" :recursive t
> 			      :publishing-function org-publish-org-to-html
> 			      :section-numbers nil :auto-preamble t
> 			      :table-of-contents nil :style
> 			      "<link rel='stylesheet' type='text/css' href='css/ 
> style.css' />" :style-include-default t :author-info nil :email-info  
> nil :creator-info nil)
> 			     ("wiki2" :base-directory "~/WikiNotes/org/"
> 			      :base-extension
> 			      "css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg\\| 
> swf" :publishing-directory "~/WikiNotes/publish/" :recursive  
> t :publishing-function org-publish-attachment)
> 			     ("website" :components ("wiki" "wiki2")))
> org-export-preprocess-before-normalizing-links-hook '(org-remove- 
> file-link-modifiers)
> org-mode-hook '(#[nil "\300\301\302\303\304$\207"
> 		   [org-add-hook change-major-mode-hook org-show-block-all
> 		    append local]
> 		   5]
> 		 turn-on-org-cdlatex)
> org-confirm-elisp-link-function 'yes-or-no-p
> org-occur-hook '(org-first-headline-recenter)
> org-export-preprocess-before-selecting-backend-code-hook '(org- 
> beamer-select-beamer-code)
> org-remember-templates '(("Tasks" 116 "* TODO %?\n  %i\n  %a"
> 			   "/home/lucaspeng/homework/wiki/todo.org" nil)
> 			  ("Appointments" 97
> 			   "* Appointment: %?\n%^T\n%i\n  %a"
> 			   "~/organizer.org" nil)
> 			  )
> org-export-latex-final-hook '(org-beamer-amend-header org-beamer-fix- 
> toc
> 			       org-beamer-auto-fragile-frames
> 			       org-beamer-place-default-actions-for-lists)
> )
>
>
> _______________________________________________
> 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

- Carsten

^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2010-04-27  9:38 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
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

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).