public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
From: Oliver <news-WPTjrydoUPgeaOpM6FAJmQkbCANdLtlA@public.gmane.org>
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
Subject: Re: Filters in Lua vs in Haskell
Date: Thu, 01 Jun 2023 10:57:07 +1000	[thread overview]
Message-ID: <300119B6-9113-4531-B7D7-E7E49C70560B@halloleo.hailmail.net> (raw)
In-Reply-To: <03C8EA07-C75F-4DEC-B0BB-F3AA469CBCB8-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>

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

Thanks for the pointer, John.

 From this one data point, the JSON overhead seems to be *quite* 
substantial.

I guess I will look into Lua filters then…

Leo

On 31 May 2023, at 8:53, John MacFarlane wrote:

> See the chart at the beginning of the Lua filters documentation for 
> one data point.
>
>
>> On May 30, 2023, at 3:46 PM, Oliver <news-WPTjrydoUPgeaOpM6FAJmQkbCANdLtlA@public.gmane.org> 
>> wrote:
>>
>> Thanks for this, John.
>>
>> Do you know, is the performance hit big? Or nothing really to worry?
>>
>> Regards,
>> Olli
>>
>> On 30 May 2023, at 4:18, John MacFarlane wrote:
>>
>>> Because JSON filters involve serializing the Haskell data structure 
>>> to JSON, then decoding that back to a Haskell data structure, 
>>> modifying it, encoding it to JSON, and decoding it back.  The Lua 
>>> interface avoids all of this serialization/deserialization.
>>>
>>>> On May 29, 2023, at 12:46 AM, oliver <news-WPTjrydoUPgeaOpM6FAJmQkbCANdLtlA@public.gmane.org> 
>>>> wrote:
>>>>
>>>> Hi there
>>>>
>>>> The doco says Lua filters “are usually faster than JSON 
>>>> filters” and from my understanding Haskell filters are JSON 
>>>> filters.
>>>>
>>>> So why are filters in Pandoc’s “native” language slower than 
>>>> filters in Lua?
>>>>
>>>> Thanks for clarification!
>>>> Olli
>>>>
>>>> On 29 May 2023, at 11:03, Michael Milton wrote:
>>>>
>>>> I just tried to render a PowerPoint presentation from markdown. 
>>>> However the template I used is a bit odd, and I noticed that my 
>>>> title slide was not populated with text, whereas the regular slides 
>>>> were. I wonder if someone could explain the logic that Pandoc uses 
>>>> to find a text box to insert text into? Is there a way to modify my 
>>>> template to avoid these issues? --
>>>> You received this message because you are subscribed to the Google 
>>>> Groups "pandoc-discuss" group.
>>>> To unsubscribe from this group and stop receiving emails from it, 
>>>> send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
>>>> To view this discussion on the web visit 
>>>> https://groups.google.com/d/msgid/pandoc-discuss/874eb03a-f62b-4ee7-a582-30c798f22083n%40googlegroups.com.
>>>>
>>>> -- 
>>>> You received this message because you are subscribed to the Google 
>>>> Groups "pandoc-discuss" group.
>>>> To unsubscribe from this group and stop receiving emails from it, 
>>>> send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
>>>> To view this discussion on the web visit 
>>>> https://groups.google.com/d/msgid/pandoc-discuss/EC2F53EB-56F2-4078-B8DF-5D35B64A7EC0%40halloleo.hailmail.net.
>>>
>>> -- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "pandoc-discuss" group.
>>> To unsubscribe from this group and stop receiving emails from it, 
>>> send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/pandoc-discuss/F8164DE5-81BB-4E54-88E2-6725324BB184%40gmail.com.
>>
>> -- 
>> You received this message because you are subscribed to the Google 
>> Groups "pandoc-discuss" group.
>> To unsubscribe from this group and stop receiving emails from it, 
>> send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/pandoc-discuss/FAE4FE6C-C390-4EB7-9DF9-C31E6CFACF9B%40halloleo.hailmail.net.
>
> -- 
> You received this message because you are subscribed to the Google 
> Groups "pandoc-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send 
> an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/pandoc-discuss/03C8EA07-C75F-4DEC-B0BB-F3AA469CBCB8%40gmail.com.

-- 
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/300119B6-9113-4531-B7D7-E7E49C70560B%40halloleo.hailmail.net.

[-- Attachment #2: Type: text/html, Size: 6524 bytes --]

      parent reply	other threads:[~2023-06-01  0:57 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-29  7:46 oliver
     [not found] ` <EC2F53EB-56F2-4078-B8DF-5D35B64A7EC0-WPTjrydoUPgeaOpM6FAJmQkbCANdLtlA@public.gmane.org>
2023-05-29 18:18   ` John MacFarlane
     [not found]     ` <F8164DE5-81BB-4E54-88E2-6725324BB184-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2023-05-30 22:46       ` Oliver
     [not found]         ` <FAE4FE6C-C390-4EB7-9DF9-C31E6CFACF9B-WPTjrydoUPgeaOpM6FAJmQkbCANdLtlA@public.gmane.org>
2023-05-30 22:53           ` John MacFarlane
     [not found]             ` <03C8EA07-C75F-4DEC-B0BB-F3AA469CBCB8-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2023-06-01  0:57               ` Oliver [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=300119B6-9113-4531-B7D7-E7E49C70560B@halloleo.hailmail.net \
    --to=news-wptjrydoupgeaopm6fajmqkbcandltla@public.gmane.org \
    --cc=pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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 NNTP newsgroup(s).