emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] [PATCH] * org-publish.el (org-publish-find-date): optimization


From: Manuel Giraud
Subject: Re: [O] [PATCH] * org-publish.el (org-publish-find-date): optimization
Date: Tue, 19 Apr 2011 18:27:44 +0200
User-agent: Gnus/5.1299999999999999 (Gnus v5.13) Emacs/23.3 (berkeley-unix)

Bernt Hansen <address@hidden> writes:

> Manuel Giraud <address@hidden> writes:
>
>> Hi,
>>
>> elp reports important speed gain with this patch to find an org file date.
>
> Hi Manual,
>
> It would be useful to post the elp results too so we can see the
> differences before and after your patch.

Right. Here there are:

org-publish-find-date-before  100         0.5272890000  0.0052728900
org-publish-find-date-after   100         0.2037700000  0.0020377000

Done with:
(dotimes (n 100)
  (org-publish-find-date-before "~/foo.org")
  (org-publish-find-date-after "~/foo.org"))

and foo.org is about 300 lines.

-- 
Manuel Giraud



reply via email to

[Prev in Thread] Current Thread [Next in Thread]