[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] [PATCH] Remove unecesssary invocations of org-mode in ox-publish
From: |
Bastien |
Subject: |
Re: [O] [PATCH] Remove unecesssary invocations of org-mode in ox-publish |
Date: |
Tue, 29 Jul 2014 23:33:31 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) |
Hi Matt,
Matt Lundin <address@hidden> writes:
> Please *do not apply* the previous patch. Instead, I've attached an
> optimized version.
Applied, thanks.
> All in all this patch + commit 507244d56b055e7595ba94fe89d45c7ddb2559df
> modestly improves the performance of org-publish-org-sitemap. On a
> directory of 104 files, it used to take this long...
>
> org-publish-org-sitemap 1 10.508871433 10.508871433
>
> ...to generate a sitemap. With this patch and commit 507244d, it takes
> this long...
>
> org-publish-org-sitemap 1 7.700290794 7.700290794
>
> Clearly, this is still very inadequate, but it is an improvement. I
> would love to use the built in site-map functions, but they are simply
> to slow for any larger projects.
>
> Could we do something like this to speed it up?
>
> (with-temp-buffer
> (insert-file-contents file)
> (goto-char (point-min))
> (when (re-search-forward "^#\\+TITLE:" nil t)
> (org-element-at-point)))
I guess so. But I'm in a rush and can't really check carefully.
In the meantime, thanks for the recent patches!
--
Bastien
- Re: [O] [PATCH] Remove unecesssary invocations of org-mode in ox-publish, (continued)
- Re: [O] [PATCH] Remove unecesssary invocations of org-mode in ox-publish, Matt Lundin, 2014/07/29
- Re: [O] [PATCH] Remove unecesssary invocations of org-mode in ox-publish, Bastien, 2014/07/29
- Re: [O] [PATCH] Remove unecesssary invocations of org-mode in ox-publish, Matt Lundin, 2014/07/29
- Re: [O] [PATCH] Remove unecesssary invocations of org-mode in ox-publish, Matt Lundin, 2014/07/29
- Re: [O] [PATCH] Remove unecesssary invocations of org-mode in ox-publish,
Bastien <=
- Re: [O] [PATCH] Remove unecesssary invocations of org-mode in ox-publish, Nicolas Goaziou, 2014/07/30
- Re: [O] [PATCH] Remove unecesssary invocations of org-mode in ox-publish, Matt Lundin, 2014/07/30
- Re: [O] [PATCH] Remove unecesssary invocations of org-mode in ox-publish, Nicolas Goaziou, 2014/07/30