ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <j.hagen@xs4all.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: [NTG-context] Re: Caching Metafun images and VIM Syntax highlighted code
Date: Wed, 24 Jan 2024 18:00:09 +0100	[thread overview]
Message-ID: <3332595b-5203-471d-a029-5f0cdcdc1317@xs4all.nl> (raw)
In-Reply-To: <3n5n370p-ors0-22ps-4p82-1o59942nr7p5@hzvpu.rqh>

On 1/24/2024 5:50 PM, Aditya Mahajan wrote:
> On Wed, 24 Jan 2024, Shiv Shankar Dayal wrote:
> 
>> Perhaps Aditya Mahajan can tell me how can I cache code snippets. Invoking
>> VIM will have heavy penalty on highlighting the code otherwise.
> 
> Have you tried the vim module:
> 
> https://github.com/adityam/filter/blob/dev/vim-README.md
> 
> Caching is enabled out of the box, so you don't need to configure anything.
> 
>> Other than that, how can I cache Metafun images so that they are not
>> recomputed on every processing of file.
> 
> There used to a command for caching metafun images in MkII, but I don't know if that is really needed in LMTX. In most cases, metapost processing does not have a significant processing delay.
if images are the same one can use the reuseMPgraphic or uniqueMPgraphic 
features .. plenty of examples can be found, but as Aditya poined out mp 
is quite fast (but reuse saves on file size)

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

  reply	other threads:[~2024-01-24 17:04 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-24 16:06 [NTG-context] " Shiv Shankar Dayal
2024-01-24 16:50 ` [NTG-context] " Aditya Mahajan
2024-01-24 17:00   ` Hans Hagen [this message]
2024-01-24 17:13     ` Shiv Shankar Dayal
2024-01-24 22:02 ` Wolfgang Schuster

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=3332595b-5203-471d-a029-5f0cdcdc1317@xs4all.nl \
    --to=j.hagen@xs4all.nl \
    --cc=ntg-context@ntg.nl \
    /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).